1.1.2 • Published 10 months ago

@cheermix/logger v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Usage

A logger that integrates winston and supports timezone for printing time

import logger from "@cheermix/logger"

logger.info("info message")
logger.http("http message")
logger.error("error message")

Environment

NameTypeDefault ValueDescription
LOGGER_LEVEL"error""warn""info""http""debug""debug"Log printing level
LOGGER_COLORIZEbooleantrueLog coloring
LOGGER_TEXT_ALIGNbooleantrueLog text format adaptive
LOGGER_TIME_FORMATstringYYYY-MM-DD HH:mm:ss.SSSLog time format
NODE_TIMEZONEstringAsia/Hong_KongDayjs timezone
1.1.2

10 months ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago