Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @holllo/log with all npm packages installed. Try it out:

var log = require("@holllo/log")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@holllo/log v1.1.2

Straightforward NodeJS logging.


Straightforward NodeJS logging.


  • Console logs are colorized with Chalk.
  • Uses Fecha for timestamp formatting.
  • Comes with rotating-file-stream as the default stream.
  • 4 levels to log under. Error, warn, info and debug.


Install Log.

yarn add @holllo/log

Create a Log instance.

import Log from '@holllo/log';

const log = new Log({
  level: Log.Levels.debug,
  name: 'Name'

Log to your heart's content.

log.error('Oh no, an error!');
log.warn('Just a warning, no big deal.');'Some regular log stuff.');
log.debug('This shouldn\'t be in production. 🤔');

Check your logs in logs/${name}.log.

YYYY-MM-DD HH:mm:ss,SSS Error Oh no, an error!
YYYY-MM-DD HH:mm:ss,SSS Warn  Just a warning, no big deal.
YYYY-MM-DD HH:mm:ss,SSS Info  Some regular log stuff.
YYYY-MM-DD HH:mm:ss,SSS Debug This shouldn't be in production. 🤔


Latest version (1.1.2) changes:

  • Moved the project from GitLab to self-hosted Gitea instance.
  • Updated the dependencies and tests.
  • Cleaned up some stuff, no functional changes.

The full changelog can be found here.


Open-sourced with the MIT license.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free