Skip to content

ThePywon/logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

A package to log stuff in a better format, as well as adding color functionnality!

Now working with version 1.1.2 of @protagonists/coerce and 1.1.2 of @protagonists/emitter





Table of content

The content below does not correspond to the object structure of the objects





How to use?

Description

The package allows for a slightly better visual on objects and whatnot, as well as allow users to add color to the logs!

Import

Terminal

npm install @protagonists/logger

Node.js

const { Logger, Color } = require("@protagonists/logger");


Example

Code:

// Imports
const { Logger } = require("@protagonists/logger");
// Create new Logger instance
const myLogger = new Logger({ file: "./someExistingFile.txt" });

// Log some text
myLogger.log("Hello world!");

Output:

./someExistingFile.txt

Logger: Hello world!






This is the bottom, there is nothing more.
Go back up?

About

An upgrade to the default console

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published