{"size": 776, "ext": "js", "max_stars_repo_path": "test/display.js", "max_stars_repo_name": "jedekar/metalog", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/display.js", "max_issues_repo_name": "jedekar/metalog", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/display.js", "max_forks_repo_name": "jedekar/metalog", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.25, "max_line_length": 58, "alphanum_fraction": 0.7203608247}
'use strict';

const metalog = require('..');

const logger = metalog({
  path: './log',
  node: 'S1N1',
  application: 'app1',
  writeInterval: 3000,
  writeBuffer: 64 * 1024,
  keepDays: 5
});

const appLogger = logger.bind('app');

const stack = new Error('Stack test log message').stack;
appLogger.debug(stack);
appLogger.system('System test log message');
appLogger.fatal('Fatal test log message');
appLogger.error('Error test log message');
appLogger.warn('Warning test log message');
appLogger.info('Info test log message');
appLogger.debug('Debug test log message');
appLogger.access('Access test log message');
appLogger.slow('Slow test log message');

const defaultLogger = logger.bind();
defaultLogger.info('Write to default application logger');

logger.close();

