azure-logging
v0.3.3
Published
Logging module for azure
Downloads
2
Readme
azure-logging
Azure logging module
reader(options)
var reader = require('azure-logging').reader;
Creates a log reader. Options are:
{
app: null, // app filter
format: 'text', // output format (text | html | json)
skip: 0, // number of lines to skip
top: 10, // number of lines to fetch (limit)
level: 'warn', // maximum level ('log' < 'info' < 'warn' < 'error')
farm: null, // farm filter (e.g. 'anodejs')
instance: null, // instance filter (e.g. 'anodejsrole_IN_0')
since: null, // time query (find `top` entries since `since`. `null` means now).
message: null, // regex query on message (very slow, will not work probably)
}
The log reader is an EventEmitter
with the following events:
- 'line' -
function(line, entry)
emitted on each log line. - 'error' -
function(err)
emitted if there was an error. - 'end' -
function()
emitted at the end of the log stream.