Skip to content

kourosh-alasti/loglitely

Repository files navigation

loglitely

npm version

ExamplesDocumentationChangelogLicense

A Zero Dependency TypeScript logging library

configured preset

Table of Contents

Installation

Add the package to your project via npm

npm install loglitely

Support Matrix

Version Supported
>=1.2.0

Usage

There are two ways to add a logger to your application. The quickest way is using the default configuration.

import { createLogger } from 'loglitely';

const logger = createLogger();

logger.log("Hello World!");
logger.warn("Hello World!");
logger.debug("Hello World!");
logger.error("Hello World!");
logger.info("Hello World!");

Contributing

See CONTRIBUTING.md