Skip to content
pleahmacakaPublic

About

Simple TypeScript logger with no dependencies

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

37 Commits

Folders and files

Repository files navigation

Preview

NPM

Installation

bun add @pleahmacaka/logger
npm 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.

About

Simple TypeScript logger with no dependencies

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages