Skip to content

amiturgman/azure-logging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Logging module for azure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages