Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createRollingFileLogger doesnt log to console #74

Closed
r-yeganeh opened this issue Oct 18, 2021 · 2 comments
Closed

createRollingFileLogger doesnt log to console #74

r-yeganeh opened this issue Oct 18, 2021 · 2 comments

Comments

@r-yeganeh
Copy link

I'm trying this code:

const OPTS = {
    errorEventName:'error',
    logDirectory:'./Logs', // NOTE: folder must exist and be writable...
    fileNamePattern:'<DATE>.log',
    dateFormat:'YYYY-MM-DD'
};
const log = require('simple-node-logger').createRollingFileLogger(OPTS);
log.info('1', '2');

What is the option to both log to file with the above options and also log to js console? This code is just logging to files.

@stevefarwell
Copy link
Collaborator

see #58

@r-yeganeh
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants