Initial open source commit

This commit is contained in:
James Allen 2014-02-17 14:54:20 +00:00
commit 58cd9ced1a
4 changed files with 32 additions and 0 deletions

1
libraries/logger/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
node_modules

2
libraries/logger/index.js Executable file
View file

@ -0,0 +1,2 @@
require("coffee-script")
module.exports = require('./logging-manager');

View file

@ -0,0 +1,20 @@
bunyan = require('bunyan')
module.exports = Logger =
initialize: (name) ->
@logger = bunyan.createLogger
name: name
serializers: bunyan.stdSerializers
return @
info : ()->
@logger.info.apply(@logger, arguments)
log : ()->
@logger.info.apply(@logger, arguments)
error: ()->
@logger.error.apply(@logger, arguments)
err: ()->
@logger.error.apply(@logger, arguments)
warn: ()->
@logger.warn.apply(@logger, arguments)
Logger.initialize("default-sharelatex")

View file

@ -0,0 +1,9 @@
{
"name": "logger-sharelatex",
"homepage": "www.sharelatex.com",
"version": "0.0.1",
"dependencies": {
"coffee-script": "1.4.0",
"bunyan": "0.16.x"
}
}