koatty_logger
Advanced tools
Comparing version 1.3.8 to 1.3.10
@@ -5,2 +5,4 @@ # Changelog | ||
### [1.3.10](https://github.com/thinkkoa/koatty_logger/compare/v1.3.8...v1.3.10) (2021-12-21) | ||
### [1.3.8](https://github.com/thinkkoa/koatty_logger/compare/v1.3.6...v1.3.8) (2021-12-21) | ||
@@ -7,0 +9,0 @@ |
/*! | ||
* @Author: richen | ||
* @Date: 2021-12-21 11:22:47 | ||
* @Date: 2021-12-21 11:30:08 | ||
* @License: BSD (3-Clause) | ||
@@ -96,2 +96,42 @@ * @Copyright (c) - <richenlin(at)gmail.com> | ||
/** | ||
* getLogConsole | ||
*/ | ||
getLogConsole(): boolean; | ||
/** | ||
* setLogConsole | ||
*/ | ||
setLogConsole(t: boolean): void; | ||
/** | ||
* getLogFile | ||
*/ | ||
getLogFile(): boolean; | ||
/** | ||
* setLogFile | ||
*/ | ||
setLogFile(t: boolean): void; | ||
/** | ||
* getLogFileLevel | ||
*/ | ||
getLogFileLevel(): LogLevelType; | ||
/** | ||
* setLogFileLevel | ||
*/ | ||
setLogFileLevel(level: LogLevelType): void; | ||
/** | ||
* getLogFilePath | ||
*/ | ||
getLogFilePath(): string; | ||
/** | ||
* setLogPath | ||
*/ | ||
setLogFilePath(path: string): void; | ||
/** | ||
* getSensFields | ||
*/ | ||
getSensFields(): Set<string>; | ||
/** | ||
* setSensFields | ||
*/ | ||
setSensFields(fields: string[]): void; | ||
/** | ||
* 格式化 | ||
@@ -98,0 +138,0 @@ * |
/*! | ||
* @Author: richen | ||
* @Date: 2021-12-21 11:22:37 | ||
* @Date: 2021-12-21 11:29:58 | ||
* @License: BSD (3-Clause) | ||
@@ -135,3 +135,3 @@ * @Copyright (c) - <richenlin(at)gmail.com> | ||
* @LastEditors: Please set LastEditors | ||
* @LastEditTime: 2021-12-20 11:29:38 | ||
* @LastEditTime: 2021-12-21 11:28:44 | ||
* @License: BSD (3-Clause) | ||
@@ -232,2 +232,62 @@ * @Copyright (c) - <richenlin(at)gmail.com> | ||
/** | ||
* getLogConsole | ||
*/ | ||
getLogConsole() { | ||
return this.logConsole; | ||
} | ||
/** | ||
* setLogConsole | ||
*/ | ||
setLogConsole(t) { | ||
this.logConsole = t; | ||
} | ||
/** | ||
* getLogFile | ||
*/ | ||
getLogFile() { | ||
return this.logFile; | ||
} | ||
/** | ||
* setLogFile | ||
*/ | ||
setLogFile(t) { | ||
this.logFile = t; | ||
} | ||
/** | ||
* getLogFileLevel | ||
*/ | ||
getLogFileLevel() { | ||
return this.logFileLevel; | ||
} | ||
/** | ||
* setLogFileLevel | ||
*/ | ||
setLogFileLevel(level) { | ||
this.logFileLevel = level; | ||
} | ||
/** | ||
* getLogFilePath | ||
*/ | ||
getLogFilePath() { | ||
return this.logFilePath; | ||
} | ||
/** | ||
* setLogPath | ||
*/ | ||
setLogFilePath(path) { | ||
this.logFilePath = path; | ||
} | ||
/** | ||
* getSensFields | ||
*/ | ||
getSensFields() { | ||
return this.sensFields; | ||
} | ||
/** | ||
* setSensFields | ||
*/ | ||
setSensFields(fields) { | ||
this.sensFields = new Set([...this.sensFields, ...fields]); | ||
} | ||
/** | ||
* 格式化 | ||
@@ -234,0 +294,0 @@ * |
{ | ||
"name": "koatty_logger", | ||
"version": "1.3.8", | ||
"version": "1.3.10", | ||
"description": "Logger for koatty.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -32,5 +32,15 @@ <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
| [getLevel()](./koatty_logger.logger.getlevel.md) | | getLevel | | ||
| [getLogConsole()](./koatty_logger.logger.getlogconsole.md) | | getLogConsole | | ||
| [getLogFile()](./koatty_logger.logger.getlogfile.md) | | getLogFile | | ||
| [getLogFileLevel()](./koatty_logger.logger.getlogfilelevel.md) | | getLogFileLevel | | ||
| [getLogFilePath()](./koatty_logger.logger.getlogfilepath.md) | | getLogFilePath | | ||
| [getSensFields()](./koatty_logger.logger.getsensfields.md) | | getSensFields | | ||
| [Info(args)](./koatty_logger.logger.info.md) | | log Info | | ||
| [Log(args)](./koatty_logger.logger.log.md) | | log Log<!-- -->Logger.Log('msg')<!-- -->Logger.Log('name', 'msg')<!-- -->Logger.Log('name', 'color', 'msg')<!-- -->Logger.Log('name', 'color', 'msg1', 'msg2'...) | | ||
| [setLevel(level)](./koatty_logger.logger.setlevel.md) | | setLevel | | ||
| [setLogConsole(t)](./koatty_logger.logger.setlogconsole.md) | | setLogConsole | | ||
| [setLogFile(t)](./koatty_logger.logger.setlogfile.md) | | setLogFile | | ||
| [setLogFileLevel(level)](./koatty_logger.logger.setlogfilelevel.md) | | setLogFileLevel | | ||
| [setLogFilePath(path)](./koatty_logger.logger.setlogfilepath.md) | | setLogPath | | ||
| [setSensFields(fields)](./koatty_logger.logger.setsensfields.md) | | setSensFields | | ||
| [Success(args)](./koatty_logger.logger.success.md) | | log Success | | ||
@@ -37,0 +47,0 @@ | [Warn(args)](./koatty_logger.logger.warn.md) | | log Warn | |
{ | ||
"name": "koatty_logger", | ||
"version": "1.3.8", | ||
"version": "1.3.10", | ||
"description": "Logger for koatty.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1855310
59
1797