Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month ago
JSON representation
A minimal logger with icons and file logging support
- Host: GitHub
- URL: https://github.com/dpmland/dlog
- Owner: dpmland
- License: gpl-3.0
- Created: 2022-01-16T21:56:18.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-19T01:55:59.000Z (over 2 years ago)
- Last Synced: 2024-10-17T01:19:18.675Z (about 2 months ago)
- Topics: deno, deno-module, javascript, library, logging, typescript
- Language: TypeScript
- Homepage: https://deno.land/x/dlog2
- Size: 27.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-deno - dlog - A ussefull logger for the prompt with icons or simple version! (Modules / Logging)
- awesome-deno - dlog - 简单好用的日志记录库,支持终端图标显示。 (模块精选 / 日志记录)
- awesome-deno - dlog - 简单好用的日志记录库,支持终端图标显示。 (模块精选 / 日志记录)
README
## 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: