@jitesoft/yolog-file-plugin v1.4.6
Yolog File Plugin
Plugin for the @jitesoft/yolog
logger to write to files.
Due to the filesystem requirement a FS module is needed, this is not available in the browser, so this plugin is not suitable in the browser!
If you wish to log json strings in common json log format to file, be sure to check out the yolog json plugin!
Usage:
Install with your favorite package manager!
npm i @jitesoft/yolog-file-plugin --save
yarn add @jitesoft/yolog-file-plugin
Import and use just as with any other yolog plugin!
import logger from '@jitesoft/yolog';
import FilePlugin from '@jitesoft/yolog-file-plugin';
logger.addPlugin(new FilePlugin('path/to/log/dir', 'debug.log'));
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago