Skip to content

Simple logger to communicate with a log-service

Notifications You must be signed in to change notification settings

Billes/log-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Beskrivning

Enkel log-klient för att skicka specialformatterade loggar till en logtjänst

Typdefinitioner

Response

{ 
  success: boolean, 
  message?: string 
}

Options

{
  host?: string,
  token?: string 
}

Metoder

bootstrap

/**
 * Bootstraps the logger
 * Must be used to initialize the logger
 *
 * @param {string} system
 * @param {Options} options
 * @returns Void
 */

critical

/**
 * Logs with severity critical
 *
 * @param {Array<string>} tags
 * @param {string} Message
 * @param {mixed} data
 * @returns Promise<Response>
 */

error

/**
 * Logs with severity error
 *
 * @param {Array<string>} tags
 * @param {string} Message
 * @param {mixed} data
 * @returns Promise<Response>
 */

debug

/**
 * Logs with severity debug 
 *
 * @param {Array<string>} tags
 * @param {string} Message
 * @param {mixed} data
 * @returns Promise<Response>
 */

info

/**
 * Logs with severity info
 *
 * @param {Array<string>} tags
 * @param {string} Message
 * @param {mixed} data
 * @returns Promise<Response>
 */

warning

/**
 * Logs with severity warning
 *
 * @param {Array<string>} tags
 * @param {string} Message
 * @param {mixed} data
 * @returns Promise<Response>
 */

About

Simple logger to communicate with a log-service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published