Skip to content
Snippets Groups Projects
Commit 3f448d8b authored by Sigmund, Dominik's avatar Sigmund, Dominik
Browse files

Added config to type

parent 716fdd17
No related branches found
Tags 3.1.4
No related merge requests found
Pipeline #11860 passed
export as namespace Log;
export = Log;
/*~ Write your module's methods and properties in this class */
declare class Log {
export class Log {
constructor(config?: any);
info(...message: any): string;
notice(...message: any): string;
......@@ -12,3 +10,25 @@ declare class Log {
log(...message: any): string;
error(...message: any): string;
}
export interface LogConfig {
name?: string;
hostname?: string;
file?: string;
path?: string;
loglevel?: LogLevel;
delimiter?: string;
format?: string;
loki?: LogConfigLoki;
}
export interface LogConfigLoki {
active?: boolean;
server?: string;
}
export enum LogLevel {
DEBUG = 5,
INFO = 4,
NOTICE = 3,
WARN = 2,
ERROR = 1,
FATAL = 0
}
{
"name": "@libs/log",
"version": "3.1.3",
"version": "3.1.4",
"description": "A simple Logger with Options!",
"main": "index.js",
"scripts": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment