mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-03 23:42:50 +00:00
added test for css property
This commit is contained in:
parent
db87a2eef5
commit
13f7aabdbe
@ -23,3 +23,19 @@ const myObject = { x: 1, y: 2 };
|
||||
log.info({ obj: myObject }, 'This is my object:');
|
||||
|
||||
new bunyan.ConsoleFormattedStream({ logByLevel: true });
|
||||
|
||||
const style = {
|
||||
levels : {
|
||||
trace: 'color: DeepPink',
|
||||
debug: 'color: GoldenRod',
|
||||
info: 'color: DarkTurquoise',
|
||||
warm: 'color: Purple',
|
||||
error: 'color: Crimson',
|
||||
fatal: 'color: Black',
|
||||
},
|
||||
def: 'color: DimGray',
|
||||
msg : 'color: SteelBlue',
|
||||
src : 'color: DimGray; font-style: italic; font-size: 0.9em',
|
||||
};
|
||||
|
||||
new bunyan.ConsoleFormattedStream({ css: style });
|
||||
|
||||
Loading…
Reference in New Issue
Block a user