File logging module for good process monitoring.
Lead Maintainer: Adam Bretz
good-file
is a good-reporter implementation to write hapi server events to log files.
creates a new GoodFile object with the following arguments
path
- (required) location to write log files. "./path/" creates {timestamp} file in "./path/". "./path/log_name" creates "log_name" in "./path/". All log files created withgood-file
have three digit numerical extensions that are padded with "0"s ("1410562652544.005" or "log_name.005"). If "./path/" has any existing log files when this module isstart()
ed, the next number in sequence will be used.[options]
- optional arguments object[events]
- an object of key value paris. Defaults to{ request: '*', log: '*' }
.key
- one of ("request", "log", "error", or "ops") indicating the hapi event to subscribe tovalue
- an array of tags to filter incomming events. An empty array indicates no filtering.
[maxFileSize]
- how large a single log file can grow before a new one is created. Defaults toInfinity
good-file
implements the good-reporter interface as has no additional public methods.