Skip to content
superheroic node.js logging module
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
config enforced editorconfig settings across the project Sep 5, 2014
examples Rewrite Sep 19, 2014
lib Replace JSON.stringify with util.inspect Oct 7, 2015
test Rewrite Sep 19, 2014
.editorconfig fixed broken file-modes on Windows Sep 16, 2014
.gitignore modified .gitignore Aug 19, 2014
.jshintrc kickstarted the project Aug 15, 2014
LICENSE Initial commit Aug 13, 2014 Update Oct 7, 2015
index.js fixed one lint error in index.js Sep 5, 2014
package.json Update version number Oct 7, 2015


Logtrail is an ambitious general-purpose logging module for Node.js. The current objectives for logtrail include:

  • Custom Log Types: Add your own log type - or don't - the default ones work pretty well for most scenarios.
  • Colors and Timestamps: Fancy log entries - or not - it can be disabled.
  • Loglevels and Thresholding: Depending on the environment, certain log types might not need to be printed.
  • Writing Logs to Files: A must have feature for any logger!
  • Custom Callbacks: Send logs to Papertrail or any other TCP destination.
  • Default Logger: Hijack the native console.log, console.err and console.warn

TODO (Transitional)

  • add capability: write to files (strip colors)
  • add capability: set loglevel without reconfiguring
  • add capability: extend log types
  • write test: logtrail core


var logtrail = require('logtrail');

	timestamp: true,
	stacktrace: true,
	loglevel: 'info'

// loglevels:
// fatal
// error
// warn
// info
// trace
You can’t perform that action at this time.