Simple logger written in TypeScript for Node.js
import { Logger } from '@asoriano/ts-logger;
const logger = new Logger({
path: './path',
filename: 'name.log',
});
Name | Type | Example | Is optional |
---|---|---|---|
path |
string |
'./some-relative-path' |
false |
filename |
string |
'app-name.log' |
false |
loggerLogFile |
string |
'/some-path/logger.log' |
true |
Just run npm test
.
Any feedback is always welcome so please just raise an issue and will reply ASAP. Feel free to create PR if you have the time.