Skip to content

Commit 1db2452

Browse files
committed
Update README
1 parent d71a288 commit 1db2452

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,20 @@ main()
3737
You can check this [repository](https://github.com/Tiaansu/greet-component) for the example on how to use this component to another component.
3838

3939
## 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`)
4141
- `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`)
4343
- `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}}`)
4445
- `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`)
5054

5155
## Thanks to
5256
- [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

Comments
 (0)