1.1.1 • Published 6 months ago

@cheermix/logger v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 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.1

6 months ago

1.1.0

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago