a simple to use 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
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' });