@sudoorgza/logger
v0.0.3
Published
template module
Downloads
4
Readme
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')