The Logger type exposes the following members.
Properties
Name | Description | |
---|---|---|
FileFormat | Log file format for example: {level}.log | |
Format | Log message format for example: [{time}] [{level}] {message} | |
IsDebug |
Is debug enabled. This bool property can be useful to do conditonal debug
chunks to reduce the extra overhead to build the debug message.
| |
IsError |
Is error enabled. This bool property can be useful to do conditonal error
chunks to reduce the extra overhead to build the error message.
| |
IsFatal |
Is fatal enabled. This bool property can be useful to do conditonal fatal
chunks to reduce the extra overhead to build the fatal message.
| |
IsInfo |
Is info enabled. This bool property can be useful to do conditonal info
chunks to reduce the extra overhead to build the info message.
| |
IsWarn |
Is warning enabled. This bool property can be useful to do conditonal warning
chunks to reduce the extra overhead to build the warning message.
| |
Level | Log level to use when writing to file. | |
LevelName |
Level string name, useful when the logger
level comes from a config or page parameter.
| |
MaxFiles | Max log files in rotation. | |
MaxSize | Max file size with prefix for example: 10m or 100k. | |
Path | Log directory path. This is where the log files will be stored. | |
TimeFormat | Time format for example: yyyy-MM-dd HH:mm:ss |