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

custom format for syslog #81

Open
AlexMost opened this issue Apr 25, 2017 · 1 comment
Open

custom format for syslog #81

AlexMost opened this issue Apr 25, 2017 · 1 comment

Comments

@AlexMost
Copy link
Contributor

AlexMost commented Apr 25, 2017

Hi there, I found your extension useful for my project. One thing I am missing is an ability to provide custom formatter for Syslog message format. What I need is a consistent format with python implementation from here.

Exmple:

<prival>appName: message

It would be great to have an ability to specify custom Syslog formatting function through the options. What do you think?

@cjbarth
Copy link
Contributor

cjbarth commented Mar 9, 2018

There is already a standard way to do this in winston, using the stringify option when json is enabled or using formatter when json isn't enabled. See https://github.com/winstonjs/winston/tree/2.4.0#custom-log-format.

That isn't exposed via the winston-syslog interface, but it is a one-liner to add which I've commented on in #98.

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