Merge pull request #24663 from blair/winston-expand-colorize-possible-values

winston: add 'all', 'level' and	'message' as valid colorize values.
This commit is contained in:
Paul van Brenk
2018-04-03 11:32:25 -07:00
committed by GitHub
+4 -4
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;