1
0
mirror of https://github.com/suk-ws/messiva.git synced 2024-11-22 16:44:50 +08:00
Commit Graph

3 Commits

Author SHA1 Message Date
ab95aa71d7
add Formatter struct; add support for LevelRestrict; fix some problems.
- upgrade gradle wrapper 7.3.1 -> 8.0.2

- add Formatter struct that will format Log object to String message.
  - now supports SimpleFormatter. which is old ConsoleAppender formatting method.
- add Appender abs-class.
- add support for LevelRestrict.
  - available on Appender and Logger.
- fix wrong LogLevel.All level number (which should be smallest).
- add LogLevel.ALL and LogLevel.NONE as smallest and biggest level.
- add warning as an alias of warn in ILogLevelImpl.
-
2023-04-08 12:06:36 +08:00
492a838d90
建立简单Log数据模型和输出模型
- 基础 Log 模型,记录了消息和时间戳,线程,等级,调用堆栈跟踪
  - 同时消息以 Message 封装
- 输出器接口用以Log对象输出,和基于System.out.println的控制台输出器——包含预定的格式规范器
- 基础的 Logger,可以储存一些输出器,并根据信息字符串创建简单的消息对象分发到输出器中
2021-12-10 23:49:33 +08:00
4728636f63
initialize gradle project 2021-12-10 23:38:16 +08:00