Skip to content
Zoltan Tarcsay edited this page Oct 10, 2015 · 1 revision

logger([level], [id]) ⇒ winston~Logger

Creates a new winston Logger

Kind: global function

Param Type Default Description
[level] string "error" Log level
[id] string An optional ID that gets added to the log message

Example

var logger = require('openam-agent').logger('info', 'myLogger');
logger.info('hello world!');
Clone this wiki locally