Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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!

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)