@pleahmacaka/logger
v3.2.0
Published
Simple TypeScript logger with no dependencies
Maintainers
Readme
Preview
Installation
bun add @pleahmacaka/loggernpm install @pleahmacaka/logger
Example Code
import { Level, Logger } from "@pleahmacaka/logger"
Logger.log(Level.INFO, "Believe in yourself.")
Logger.warn("Seize the day.")
Logger.critical("Life is a journey.")Output logs
[2023-05-02 18:14:27] :: [INFO] :: Believe in yourself.
[2023-05-02 18:14:27] :: [WARN] :: Seize the day.
[2023-05-02 18:14:27] :: [CRITICAL] :: Life is a journey.The prefix is colored by level and the content is printed in white.
