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

Added winston file transport and updated console.log usage #99

Closed
wants to merge 2 commits into from

Conversation

adamegyed
Copy link
Contributor

Fixes #67

@adamegyed
Copy link
Contributor Author

Move log folder to base folder, add gitignore, reduce chunk size to 2 mb.

@adamegyed
Copy link
Contributor Author

Oof wait I need to remove some things

@@ -1,5 +1,8 @@

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the extra whitespace here?

new winston.transports.File({
level: 'debug',
filename: `./logs/nantucket.log`,
handleExceptions: true,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can multiple transports handle exceptions or will that break things?

@@ -1,4 +1,6 @@
// src
import * as winston from "winston";
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this import scheme work with current JS stuff?

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

Successfully merging this pull request may close these issues.

Refactor logging levels to use multiple winston transports
2 participants