Skip to content

Tricked-dev/deno-loki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deno-Loki

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' });

img