0.0.3 • Published 5 years ago
@sudoorgza/logger v0.0.3
Logger
A small wrapper around Google's Winston logging module @google-cloud/logging-winston. For more information on the use of such a logger refer to winston.
Getting started
yarn add @sudoorgza/logger
Usage
import createLogger from '@sudoorgza/logger'
const newLogger = createLogger('my-namespace', '0.0.1', 'warn', 'gcp-project-id')
newLogger.info('this will not be logged')
newLogger.warn('while this warning will be logged')