1
0
mirror of https://github.com/suk-ws/messiva.git synced 2024-11-24 11:17:37 +08:00
Commit Graph

9 Commits

Author SHA1 Message Date
d65ea6e7bd
add new Appender and Message API
- deprecated old Message, add new IMessage API.
- deprecated old Logger.appends, uses new AppenderProvider API to provide Appenders to Logger.
- add a context on Log.
- deprecated field read on Log, use method to read those.
- add name on Logger.
- add codepoint output for SimpleFormatter.
2024-07-27 11:05:23 +08:00
09c215b7ab
add README 2023-10-15 19:23:27 +08:00
db47d6f819
add separator for message in SimpleFormatter, well-define null-define annotation. 2023-10-15 18:21:50 +08:00
f4697a45c0
add ILogLevel as new LogLevel abstract, better Logger
- add ILogLevel as new LogLevel abstract
  - all reference to LogLevel have been changed to reference ILogLevel
- add (Message) parameter set to ILogLevelImpl and Logger
- add (String, ILogLevel) and (Message, ILogLevel) to Logger
2023-10-15 12:40:47 +08:00
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
31ccf14941
补充意外缺少的 LogLevel.DEBUG 2021-12-13 22:57:49 +08:00
64328904d7
修订 gradle 定义的构件名 2021-12-10 23:51:41 +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