@tsxper/log-stream-formatter-visual
v1.0.3
Published
Visual formatter for @tsxper/log-stream
Downloads
1
Readme
@tsxper/log-stream-formatter-visual
Visual formatter for @tsxper/log-stream.
npm i @tsxper/log-stream-formatter-visual -D
Configuration
There are 2 possible options of configuration:
- Piped output.
- Replace default formatter.
Piped Output
Piped output can be useful when formatter is installed as a dev dependency.
npx ts-node service.ts | npx @tsxper/log-stream-formatter-visual [logDepth]
Replace Default Formatter
import { FormatterVisual } from '@tsxper/log-stream-formatter-visual';
const formatter = new FormatterVisual();
logger.setFormatter(formatter.formatter.bind(formatter));
Disable Colors
formatter.setColors(false);