Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tricked-dev/deno-loki
Loki logger for deno!
https://github.com/tricked-dev/deno-loki
logger loki
Last synced: about 1 month ago
JSON representation
Loki logger for deno!
- Host: GitHub
- URL: https://github.com/tricked-dev/deno-loki
- Owner: Tricked-dev
- License: apache-2.0
- Created: 2022-02-16T18:50:05.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-27T13:19:42.000Z (almost 3 years ago)
- Last Synced: 2024-10-17T17:44:51.384Z (2 months ago)
- Topics: logger, loki
- Language: TypeScript
- Homepage:
- Size: 71.3 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Deno-Loki
a simple to use [Loki](https://grafana.com/oss/loki/) logger for deno
Please feel free to use the code in this project for your own projects this is more a example than anything useful
```ts
import { LokiLogger } from 'https://deno.land/x/loki/mod.ts';
let logger = new LokiLogger(
'http://localhost:3100',
1,
{
host: 'localhost',
job: 'Deno!',
},
'TEXT'
);
logger.info('Some info', { data: 'Some more info' });
logger.warm('Some info', { data: 'Some more info' });
logger.debug('Some info', { data: 'Some more info' });
logger.error('Some info', { data: 'Some more info' });
```![img](images/NQz4MDp.png)