Welcome to Log Magic.

The goal is to have a fast and easy to use logging subsystem that can be dynamically
reconfigured to provide insight into production systems.

Logmagic does its magic by generating objects with generated functions that are only modified
when the logging system is reconfigured, thus your entire logging path is contained within
long-lived functions that V8 is able to JIT.

Getting Started

If you had a file named like, "lib/foo/bar.js", at the top of it, you would put the following:

var log = require('logmagic').local('mylib.foo.bar');

Then inside bar.js, you would just use the logger like any normal logger: