Socket
Socket
Sign inDemoInstall

metalog

Package Overview
Dependencies
2
Maintainers
5
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    metalog

Logger for Metarhia


Version published
Maintainers
5
Install size
76.3 kB
Created

Changelog

Source

[3.1.14][] - 2023-12-10

  • Moved to native node test runner
  • Update dependencies
  • Fix package file: url and formatting
  • Update Guthub actions CI config and add nodejs 21 to CI
  • Add "es2020" to eslint configuration

Readme

Source

Meta Logger for Metarhia

ci status snyk npm version npm downloads/month npm downloads license

Output example

Usage

const logger = await metalog.openLog({
  path: './log', // absolute or relative path
  workerId: 7, // mark for process or thread
  writeInterval: 3000, // flush log to disk interval
  writeBuffer: 64 * 1024, // buffer size (default 64kb)
  keepDays: 5, // delete after N days, 0 - disable
  home: process.cwd(), // remove substring from paths
  json: false, // print logs in JSON format, by default false
});

const { console } = logger;
console.log('Test message');
await logger.close();

License & Contributors

Copyright (c) 2017-2023 Metarhia contributors. Metalog is MIT licensed.
Metalog is a part of Metarhia technology stack.

Keywords

FAQs

Last updated on 10 Dec 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc