0.0.1-jENK • Published 5 years ago

loggus v0.0.1-jENK

Weekly downloads
2
License
Unlicense
Repository
github
Last release
5 years ago

logg

This software is heavily under development! Use it at your own risk!

Getting Started

Logg is meant to get you started logging stuff in a way that won't bite you in the butt if you want to change it later.

To configure it call the module

const logg = require('logg')

logg({
    handlers:{
        error: console.log
        warning: console.log
        reporting: console.log
    }
})

You can also provide a list of methods to be handled by the call. To call these methods, require logg and use the following methods:

logg.log(level, msg)
//acceptable values for level:
// "error", "warning", "reporting"

logg.logError(msg)

logg.logWarning(msg)

logg.logReporting(msg)

Integration with CF-GG

Testing this now.