Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.
/ glogger Public archive

A simple logger for Deno with minimal setup.

License

Notifications You must be signed in to change notification settings

grian32/glogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glogger

A simple logger for Deno

image

Example Code

Regular Logging

import GLogger from "https://deno.land/x/[email protected]/mod.ts";

let logger = new GLogger("Example");
logger.info("Hello from Example");

File Logging

To enable file logging you must pass true to the logToFile parameter, and pass a location to the logFolder parameter, the logFolder paramater defaults to ./logs/

import GLogger from "https://deno.land/x/[email protected]/mod.ts";

// this enables file logging, and puts the `.log` files in `my/path/to/log/folder`
let logger = new GLogger("Example", true, "my/path/to/log/folder");
logger.info("Hello from Example");

About

A simple logger for Deno with minimal setup.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published