You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,16 +37,20 @@ main()
37
37
You can check this [repository](https://github.com/Tiaansu/greet-component) for the example on how to use this component to another component.
38
38
39
39
## Configurations
40
-
-`logger.log_level_capitalized`: whether print the log level name in uppercase or capitalize format. (default: `false`)
40
+
-`logger.is_log_level_capitalized`: Whether print the log level name in uppercase or capitalize format. (default: `false`)
41
41
-`logger.display_source`: If set to `true`, the log printed in the file will have source. (default: `true`)
42
-
-`logger.enable_source_for_all`: If set to `true`, all log levels printed in the file will have source (file:line), otherwise only `Warning`, `Error`, and `Fatal` will have it. (default: `false`)
42
+
-`logger.enable_source_for_all_level`: If set to `true`, all log levels printed in the file will have source (file:line), otherwise only `Warning`, `Error`, and `Fatal` will have it. (default: `false`)
43
43
-`logger.timestamp_format`: The timestamp format for the log. (default: `%Y-%m-%dT%H:%M:%S%z`)
44
+
-`logger.log_format`: The log format. (default: `[{{timestamp}}] [{{name}}] [{{log_level}}] {{message}}`)
44
45
-`logger.log_directory`: The directory/path where the log files will be created. (default: `logs`)
45
-
-`logger.colors.debug`: The color for `debug` log level. (default: `0xADD8E6`)
46
-
-`logger.colors.info`: The color for `info` log level. (default: `0x90EE90`)
47
-
-`logger.colors.warning`: The color for `warning` log level. (default: `0xFFD700`)
48
-
-`logger.colors.error`: The color for `error` log level. (default: `0xFFB266`)
49
-
-`logger.colors.fatal`: The color for `fatal` log level. (default: `0xFF7F7F`)
46
+
-`logger.color.enabled_timestamp`: Whether the timestamp be colorized or not. (default: `false`)
47
+
-`logger.color.enabled_log_level`: Whether the log level be colorized or not. (default: `false`)
48
+
-`logger.color.enabled_name`: Whether the name be colorized or not. (default: `false`)
49
+
-`logger.color.debug`: The color for `debug` log level. (default: `0xADD8E6`)
50
+
-`logger.color.info`: The color for `info` log level. (default: `0x90EE90`)
51
+
-`logger.color.warning`: The color for `warning` log level. (default: `0xFFD700`)
52
+
-`logger.color.error`: The color for `error` log level. (default: `0xFFB266`)
53
+
-`logger.color.fatal`: The color for `fatal` log level. (default: `0xFF7F7F`)
50
54
51
55
## Thanks to
52
56
-[Amir's omp-node](https://github.com/AmyrAhmady/omp-node) (I copied it's `include` style so other components can use this component)
0 commit comments