Giter Club home page Giter Club logo

winston-rsyslog2's Introduction

Hey, I'm the founder of Metadash.

Previously I was at Better.com and Glean AI.

My interests include design, tech, and startups.

I call New York City home.

winston-rsyslog2's People

Contributors

broox avatar fgrande avatar imsky avatar iwater avatar kbakba avatar markstos avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

winston-rsyslog2's Issues

no logs were sent without specifying a valid levelMapping

No logs were being written to rsyslog even though everything looked correct. I was able to test that the tcp port was open using nc. I traced through the code and realized the default levelMapping was {} which could be a problem. The docs say the default value should have been "winston.config.syslog.levelMapping" but the code said otherwise. I tried finding this object and it did not exist but I did find winston.config.syslog.levels. As soon as I added levelMappings: winston.config.syslog.levels to the options, the logs were forwarded as expected.

The default should be updated to use this value and the docs should be updated.

I'm using "winston": "2.4.0" and "winston-rsyslog2": "0.0.5"

Not compatible with winston-log-and-exit.

Hello,

I'm the author of the winston-log-and-exit, and have some users of this package have complained that this package doesn't work with winston-log-and-exit. As you may know, cleanly exiting a process and retaining the last few log entries is a perennial problem for winston users, which is confounded by poor documentation on how Winston identifies streaming loggers, and what API streaming loggers should implement.

In short, to work with winston-log-and-exit a custom Streaming Transport needs a ._stream attribute, has an .end() method, and which issues a "finish" event when all the messages that were logged before the .end() method was called.

Cheers,

-Jason

upgrade to winston 3.0

I am starting seeing this warning after the upgrade to winston 3.0:

rsyslog is a legacy winston transport. Consider upgrading: - Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md

Can you consider upgrading this library?
Thanks!

How to use a custom log, e.g. /var/log/myapp.log?

Hi there

Firstly thanks for making this project.

I am able to get everything working fine (logging to facility 16, i.e. local0). This creates a log file such as /var/log/local0.log

Is there a way we can use a facility so the log goes to /var/log/[custom name or name of my app] ?

Thanks

winston.transports.Rsyslog == undefined

Hi, logging been working a treat then some odd "undefined" behaviour today.

var winston = require('winston');
require('winston-rsyslog2');
console.dir(winston.transports.Rsyslog);

// > undefined

package.json dependencies

"dependencies": {
    "winston": "^1.0.2",
    "winston-rsyslog2": "0.0.5"
  }

any ideas why the Rsyslog transport would be undefined?

Consider merging with `winston-syslog` project

While syslogd are rsyslogd are different syslog servers, they speak a common protocol. Thus it seems that winston-syslog could speak to rsyslog servers, while winston-rsyslog2 could speak to a syslog server.

We should consider if the projects could be merged. For example winston-syslog code to check the connection, and if the connection fails, retry the connection several times while queuing the logs until the connection comes back up. We lack that feature. We have the feature to map winston log levels to syslog log levels, but that hasn't landed yet in `winston-syslog'.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.