added test for css property

This commit is contained in:
Toby Li 2018-12-19 17:00:43 +00:00
parent db87a2eef5
commit 13f7aabdbe

View File

@ -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 });