Skip to content

LinguaCode/lingua-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lingua-logger

Description

Package lingua-logger is a hyper recursive logging tool which helps to create simple charts for a complex hyper recursions.

Screenshot

Screenshot

How to install

$ npm install https://github.com/LinguaCode/lingua-logger --save

Usage

require the lingua-logger module.
var logger = require('lingua-logger');
prints single message.
logger.log(message)
same as logger.log.
console.llog(message)
prints single collapse's first message.
console.llog(message, 'begin')
prints single collapse's last message.
console.llog(message, 'end')
reset the indent level.
logger.init()

Example

Code

var logger = require('lingua-logger');

console.llog('single');
console.llog('1st level', 'begin');
console.llog('2nd level', 'begin');
console.llog('3rd level', 'begin');
console.llog('single');
console.llog('3rd level', 'end');
console.llog('2nd level', 'end');
console.llog('1st level', 'end');
console.llog('single');

Output

single
1st level
    2nd level
        3rd level
            single
        3rd level
    2nd level
1st level
single

##License LinguaCode is licensed under GPLv3.

About

Structured logging package for LinguaCode's core

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published