Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
logdna-winston
Advanced tools
Node.js Winston library for logging to LogDNA
$ npm install --save logdna-winston
Please see the logdna npm module for the API.
This module also provides a transport object, which can be added to winston using:
const logdnaWinston = require('logdna-winston');
const winston = require('winston');
const logger = winston.createLogger({});
const options = {
key: apikey,
hostname: myHostname,
ip: ipAddress,
mac: macAddress,
app: appName,
env: envName,
level: level, // Default to debug, maximum level of log, doc: https://github.com/winstonjs/winston#logging-levels
index_meta: true // Defaults to false, when true ensures meta object will be searchable
};
// Only add this line in order to track exceptions
options.handleExceptions = true;
logger.add(new logdnaWinston(options));
// log with meta
logger.log({
level: 'info'
, message: 'Log from LogDNA-winston'
, index_meta: true // Ignore this if you would like to use default setting
, data:'Some information' // Properties besides level, message and index_meta are considered as "meta"
, error: new Error("It's a trap.") // Transport will parse the error object under property 'error'
});
// log without meta
logger.info('Info: Log from LogDNA-winston');
MIT © LogDNA
Happy Logging!
FAQs
LogDNA's Node.js logging module with support for Winston
The npm package logdna-winston receives a total of 3,254 weekly downloads. As such, logdna-winston popularity was classified as popular.
We found that logdna-winston demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.