
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
node-syslog-client-bsd
Advanced tools
Wrapper for https://www.npmjs.com/package/syslog-client package
Wrapper for https://www.npmjs.com/package/syslog-client package
yarn add node-syslog-client-bsd
or npm i node-syslog-client-bsd
const SyslogClient = require("node-syslog-client-bsd");
new SyslogClient(IP, [options]);
IP
: IP of your syslog server[options]
: can be find here : https://www.npmjs.com/package/syslog-client#syslogcreateclienttarget-optionsReturn new instance of SyslogClient (constructor)
const options = {
syslogHostname: 'home-api.local',
};
const logClient = new SyslogClient('10.0.0.15', options);
SyslogClient.getClient()
Return the instance of syslog-client based on syslog-client package
SyslogClient.setProgram(program)
sets the program for all calls according to the setter
SyslogClient.resetProgram()
reset the program for all calls according to the reset
SyslogClient.setFacility(facility)
sets the facility for all calls according to the setter
SyslogClient.resetFacility()
reset the facility for all calls according to the reset
log(message, [program], [options])
message
: message to log[program]
: set the program specific for one log. Default N/A
[options]
: options based on syslog-client options. It overloads what you've already set upyou have access to all these functions depending on the level
logClient.info('Log infos!');
logClient.warning('Log warning!');
logClient.error('Log error!');
logClient.debug('Log debug!');
logClient.emergency('Log emergency!');
logClient.alert('Log alert!');
logClient.critical('Log critical!');
logClient.notice('Log notice!');
You can find an example in ./example/index.js
. The screenshot below shows you its result (on an Synology NAS)
FAQs
Wrapper for https://www.npmjs.com/package/syslog-client package
We found that node-syslog-client-bsd demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.