Skip to content

imperian-systems/logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imperian-systems/logger

Usage

import Logger, { SourceType, MessageType, LogLevels, Status } from "@imperian-systems/logger";

const source: SourceType = {
  client_name: "Imperian",
  platform: "Linux",
  type: "JavaScript",
  name: "Tim's app",
  detail: "Test from index.ts",
};

const logger = new Logger(source, "https://logserver/api/logs");

const message: MessageType = {
  attempt: 1,
  status: Status.SUCCESS,
  log_level: LogLevels.INFO,
  message: "Hello, world!",
};

logger.record(message);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published