Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/monai/node-syslog
Node.js bindings to syslog
https://github.com/monai/node-syslog
Last synced: 4 days ago
JSON representation
Node.js bindings to syslog
- Host: GitHub
- URL: https://github.com/monai/node-syslog
- Owner: monai
- Created: 2015-06-11T10:23:24.000Z (over 9 years ago)
- Default Branch: develop
- Last Pushed: 2015-11-27T16:19:55.000Z (almost 9 years ago)
- Last Synced: 2024-10-16T02:04:52.903Z (28 days ago)
- Language: C++
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-syslog
[![Build Status](http://img.shields.io/travis/monai/node-syslog/develop.svg)](https://travis-ci.org/monai/node-syslog)
[![NPM Version](http://img.shields.io/npm/v/syslog-bindings.svg)](https://www.npmjs.org/package/syslog-bindings)Node.js bindings to syslog.
`npm install syslog-bindings`
## API
API is as close as possible to `man 3 syslog`.
### closelog(callback)
See manpage for details.
Callback arguments:
- none
### closelogSync()
Synchronious closelog.
### openlog(ident, logopt, facility, callback)
See manpage for details.
Callback arguments:
- none
### openlogSync(ident, logopt, facility)
Synchronious openlog.
### setlogmask(maskpri, callback)
See manpage for details.
Callback arguments:
- null
- previous log mask level### setlogmaskSync(maskpri)
Synchronious setlogmask. Returns previous log mask level.
### syslog(priority, message, callback)
`printf` functionality is suppressed by always interpolating `message` as `%s`.
See manpage for details.
Callback arguments:
- none
### syslogSync(priority, message)
Synchronious syslog.
### prioritynames
An object with human readable priority names.
See `` for details.
### facilitynames
An object with human readable facility names.
See `` for details.
### Constants
Following constants are exported.
Priorities:
- LOG_EMERG
- LOG_ALERT
- LOG_CRIT
- LOG_ERR
- LOG_WARNING
- LOG_NOTICE
- LOG_INFO
- LOG_DEBUGFacilities:
- LOG_KERN
- LOG_USER
- LOG_MAIL
- LOG_DAEMON
- LOG_AUTH
- LOG_SYSLOG
- LOG_LPR
- LOG_NEWS
- LOG_UUCP
- LOG_CRON
- LOG_AUTHPRIV
- LOG_FTP
- LOG_LOCAL0
- LOG_LOCAL1
- LOG_LOCAL2
- LOG_LOCAL3
- LOG_LOCAL4
- LOG_LOCAL5
- LOG_LOCAL6
- LOG_LOCAL7Openlog options:
- LOG_PID
- LOG_CONS
- LOG_ODELAY
- LOG_NDELAY
- LOG_NOWAIT
- LOG_PERRORInternals:
- INTERNAL_NOPRI
- INTERNAL_MARK## License
ISC