UtilitiesLoggerGetting started

Getting started

A custom console logger made for Aezen's framework to colorize the logs, make them more noticable based on their level, and to remove the boring all-white logs.

WARNING

Before you proceed, here is a warning. This module is specifically made for the needs of Aezen, so it may not be able to fulfill the customization that you desire.

Installation

npm install @aezen/logger

Features

  • Written with TypeScript and ES Module.
  • Easy to use and understand.
  • Supports more time units: decades, centuries, megayear, gigayear, and terayear.
  • Added more duration formatter functions.
  • Uses bignumber.js to handle large numbers when converting.
  • Lightweight and easy-to-use.

Prerequisites

Knowledge

You must know how to use JavaScript or TypeScript, or how to code in general. It is unlikely that you will get help from using this module by making a new issue.

Node version

It is highly recommended to use the latest verion of node.

ECMAScript

This package is written in ES module, meaning your project must also use ES module in order to use this.

WARNING

Please ensure strict adherence to the prerequisites outlined for this module. Following these guidelines is essential for optimal functionality and compatibility.

Last updated on