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

Errors with stack traces #94

Open
acanimal opened this issue Jan 18, 2018 · 0 comments
Open

Errors with stack traces #94

acanimal opened this issue Jan 18, 2018 · 0 comments

Comments

@acanimal
Copy link

Hi,
I'm using winston with console and syslog transports. While errors on console are shown with stack traces like:

error:  Error: dummy error
    at expressApp.use (/Users/someuser/Psomeporject/server/server.js:78:12)
    at Layer.handle [as handle_request] (/Users/someuser/Psomeporject/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/Users/someuser/Psomeporject/node_modules/express/lib/router/index.js:317:13)
    at /Users/someuser/Psomeporject/node_modules/express/lib/router/index.js:284:7
   ...

Our syslog server is configured to store error leveled messages in an error file, the problem is with the previous error only the first line is stored in the error file, while the rest of the info is written in an accesslog file.

Any help will be appreciated. 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

1 participant