Method | Description | |
---|---|---|
ConsoleLogger ( |
创建 ConsoleLogger 实例
|
Method | Description | |
---|---|---|
GetPadding ( |
重写 GetPadding 方法,返回空字符串,在控制台显示时取消填充
|
|
WriteLogMessage ( |
重写 WriteLogMessage 方法,在控制台输出日志信息
|
Method | Description | |
---|---|---|
SetColor ( |
public ConsoleLogger ( |
||
filter | 日志筛选器,确定哪些日志需要被记录 | |
return | System |
protected GetPadding ( |
||
entry | 当前要记录的日志条目 | |
return | string |
protected WriteLogMessage ( |
||
entry | 日志条目 | |
contents | string | 要显示的文本内容 |
return | void |