1.1.4 • Published 4 years ago

gale-logger v1.1.4

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

gale-logger

Simple console logger with development option and timestamp.

How to use

const logger = require('gale-logger')

logger.log("This will be logged in production and development")
logger.log("This will only be logged in development", true)
logger.error("This is an error that will only be thrown in development", true)

Output:

[25/04/2020 - 11:28:18] This will be logged in production and development
[25/04/2020 - 11:28:18] This will only be logged in development
[25/04/2020 - 11:28:18] This is an error that will only be thrown in development

Note: Detection of production is based on use of the NODE_ENV environment variable.

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago