Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Gelf formatted log files.
npm install gelf-file
String
: The path for the log file.Object
:
Object
: An object containing parameters that should be added to each log entry.Mirror that of syslog:
0
EMERGENCY
system unusable1
ALERT
immediate action required2
CRITICAL
condition critical3
ERROR
condition error4
WARNING
condition warning5
NOTICE
condition normal, but significant6
INFO
a purely informational message7
DEBUG
debugging informationconst logger = require('gelf-file')('./app.log', {logLevel: 'WARNING'}, {app: 'my-app'});
logger.log('DEBUG', 'started app');
String
- The desired log level. Valid values are listed in the log level list above.String
- The log message.Object
- Additional information to store with the log message.log(logLevel, message, tags)
- Creates a log entry for the desired log level.emergency(message, tags)
- Creates an emergency log entry.alert(message, tags)
- Creates an alert log entry.critical(message, tags)
- Creates an critical log entry.error(message, tags)
- Creates an error log entry.warning(message, tags)
- Creates an warning log entry.notice(message, tags)
- Creates an notice log entry.info(message, tags)
- Creates an info log entry.debug(message, tags)
- Creates an debug log entry.This project was inspired by log
1.8.1 (2020-09-12)
FAQs
Gelf formatted log files.
We found that gelf-file 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.