winston: add 'all', 'level' and 'message' as valid colorize values.

Supports https://github.com/winstonjs/winston/commit/72273b1 .
This commit is contained in:
Blair Zajac
2018-03-31 19:22:11 -07:00
parent def3d5d177
commit 3369e2e196

View File

@@ -272,7 +272,7 @@ declare namespace winston {
interface ConsoleTransportInstance extends TransportInstance {
json: boolean;
colorize: boolean;
colorize: boolean | 'all' | 'level' | 'message';
prettyPrint: boolean;
timestamp: boolean | (() => string | boolean);
showLevel: boolean;
@@ -294,7 +294,7 @@ declare namespace winston {
interface FileTransportInstance extends TransportInstance {
json: boolean;
logstash: boolean;
colorize: boolean;
colorize: boolean | 'all' | 'level' | 'message';
maxsize: number|null;
rotationFormat: boolean;
zippedArchive: boolean;
@@ -330,7 +330,7 @@ declare namespace winston {
writeOutput: GenericTextTransportOptions[];
json: boolean;
colorize: boolean;
colorize: boolean | 'all' | 'level' | 'message';
prettyPrint: boolean;
timestamp: boolean | (() => string | boolean);
showLevel: boolean;
@@ -390,7 +390,7 @@ declare namespace winston {
interface GenericTextTransportOptions {
json?: boolean;
colorize?: boolean;
colorize?: boolean | 'all' | 'level' | 'message';
colors?: any;
prettyPrint?: boolean;
showLevel?: boolean;