Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dpmland/dlog

A minimal logger with icons and file logging support
https://github.com/dpmland/dlog

deno deno-module javascript library logging typescript

Last synced: 3 months ago
JSON representation

A minimal logger with icons and file logging support

Awesome Lists containing this project

README

        

Dpm Logo

## Dpm - Dlog :sauropod:

[![Discord](https://img.shields.io/discord/932381618851692565?label=Discord&logo=discord&logoColor=white)](https://discord.gg/Um27YPJKud)
[![Twitter](https://img.shields.io/twitter/follow/dpm_land?label=Dpm%20Land&style=social)](https://twitter.com/intent/follow?screen_name=dpm_land)
[![GitHub license](https://img.shields.io/github/license/dpmland/dlog?label=License)](./LICENSE)
![Github Workflow](https://img.shields.io/github/workflow/status/dpmland/dlog/CI)

This is a simple logger based on [glogger](https://github.com/grian32/glogger) repository
and improve some features

## Usage :computer:

Basic logging out:

```ts
import { Dlog } from 'https://deno.land/x/[email protected]/classic.ts'; // Classic version with the classic out!
import { Dlog } from 'https://deno.land/x/[email protected]/mini.ts'; // Mini version the same features of classic but with a minimalist out!

const logger = new Dlog('Test Dlog');

logger.info('helloooo from info');
logger.warn('helloooo from warn');
logger.error('helloooo from error');
logger.debug('helloooo from debug');
```

File log support

```ts
import { Dlog } from 'https://deno.land/x/[email protected]/classic.ts'; // Classic version with the classic out!
import { Dlog } from 'https://deno.land/x/[email protected]/mini.ts'; // Mini version the same features of classic but with a minimalist out!

const logger = new Dlog('Test Dlog', true, './test');

logger.info('helloooooo');
```

---

Made with :heart: in :earth_americas: