The preset of pino with rotating-file-stream
The next code will create logs
folder with debug.log
file. When the file reach the 100Mb
limit, it will be compressed to 20241003-1132-01-debug.log.gz
.
import { logger } from 'pinolog';
logger.log("Hello world")