@iaverage/logger
v1.1.3
Published
Simple logger I use in all my projects
Downloads
3
Readme
Logger
Simple logger used in all my projects
Usage
Simple
const logger = require("@iaverage/logger");
logger.info("Log messages to logs/ and console!");
Loki
const logger = require("@iaverage/logger");
logger.setLokiSettings({
url: "https://ip:port/loki/api/v1/push",
metadata: { label: "value" },
});
logger.info("Push messages to loki!");