2.1.1 • Published 10 months ago
@tanand-tech/logger v2.1.1
@tanand-tech/logger
tslog wrapper for tanand-tech internal usage
Homepage
Usage
Installation
npm install @tanand-tech/logger
Enable filepath
// Unix
LOGGER_DISPLAY_FILE_PATH=true npm run start
// Windows
set LOGGER_DISPLAY_FILE_PATH=true npm run start
// Cross-env
cross-env LOGGER_DISPLAY_FILE_PATH=true npm run start
Enable minimum name padding
// Unix
LOGGER_MIN_PAD=16 npm run start
// Windows
set LOGGER_MIN_PAD=16 npm run start
// Cross-env
cross-env LOGGER_MIN_PAD=16 npm run start
Configure log levels
// Unix
LOGGER_MIN_LEVEL=3 npm run start
LOGGER_MIN_LEVEL=info npm run start
// Windows
set LOGGER_MIN_LEVEL=3 npm run start
set LOGGER_MIN_LEVEL=info npm run start
// Cross-env
cross-env LOGGER_MIN_LEVEL=3 npm run start
cross-env LOGGER_MIN_LEVEL=info npm run start
Log Levels (In order of priority)
- Fatal
- Error
- Warn
- Info
- Debug
- Trace
- Silly
Author
tanand-tech
- Github: @tanand-tech
Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page.