// cli.jsconsttwoLog=require('two-log');letD=cli.flags['D'] ? true : false;letl=twoLog(D);letuseWhat=!D ? 'ora' : 'winston';l.start(`hello there debug:${D} , then use ${useWhat}`,{ora: 'red',log: 'error',});lett=5000;setTimeout(()=>{l.text(`ora:green, log:debug and ${t} i will stop `,{ora: 'green',});l.one('just show one time ora');},t-3000);setTimeout(()=>{l.text(`ora:green, log:debug and ${t} only show log style `,{ora: 'green',only: 'log',});},t-2000);setTimeout(()=>{l.stop(`${t}ms , ok i fail if ora `,{ora: 'fail',log: 'debug'});},t);
l.start === loggerStart
l.text === loggerText
l.stop === loggerStop
l.one === oneOra
logger*** use for other module without l = twoLog(D) init