Logs support.

Added /logs endpoint with basic logger and LoggerAdapter.
This commit is contained in:
Peter Shin
2016-02-04 08:18:19 -08:00
parent e6ef0ae55c
commit dc4859f561
7 changed files with 449 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
// Logger Adapter
//
// Allows you to change the logger mechanism
//
// Adapter classes must implement the following functions:
// * info(obj1 [, obj2, .., objN])
// * error(obj1 [, obj2, .., objN])
// * query(options, callback)
// Default is FileLoggerAdapter.js
export class LoggerAdapter {
info() {}
error() {}
query(options, callback) {}
}
export default LoggerAdapter;