mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
20 lines
481 B
CoffeeScript
20 lines
481 B
CoffeeScript
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")
|