Skip to content

uys2000-projects/ULogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ULogger

Basic logging addon for Promises and Functions

Table of Contents

Usage

Two type of integrations are exsist. Default mode and Live Mode. Also, these two has two type of logging types Default and DebugAsString.

Default Integration Mode

import { setDebugMode } from "u-logger"

setDebugMode(true);


exampleFunction.logger("test")

examplePromise.pLogger("test")

Default Integration With DebugAsString

import { setDebugMode } from "u-logger"

setDebugMode(true,true);


exampleFunction.logger("test")

examplePromise.pLogger("test")

Live Integration Mode

For JavaScript

import "u-logger/test"

window.isDebugModeActive = true;

exampleFunction.logger("test")

examplePromise.pLogger("test")

For NodeJs

import "u-logger/test"

global.isDebugModeActive = true;

exampleFunction.logger("test")

examplePromise.pLogger("test")

Live Integration With DebugAsString

For JavaScript

import "u-logger/test"

window.isDebugModeActive = true;
window.isStringModeActive = true;

exampleFunction.logger("test")

examplePromise.pLogger("test")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published