You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

tlf-log

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tlf-log

A small logging library

1.3.1
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

tlf-log

npm version npm total downloads npm monthly downloads License
Build status Coveralls
Dependency status DevDependency status

A simple module for easy logging

Installation

npm i -S tlf-log

Typical Usage

const log = require("tlf-log");
log.trace("Starting up!");

Documentation

FunctionDescription
log.<level>(msgs)Logs the given messages at the specified level.
log.<level>_(msgs)Logs the given messages at the specified level without printing a newline.
log._setLevel(<lvl>)Sets the minimum level to log -- all lower levels will be ignored. Can also be set to 'silent' to silence all but fatal messages.
log._addLevel(<name>, <opts>)Adds a new log level. Valid options are "before", "after" and "afterLog".
log._indent()Indents the next messages by 2 spaces.
log._deindent()Deindents the next messages by 2 spaces.
log._prefix(<name>)Adds a prefix to the next messages.
log._deprefix(<name>)Removes the most recent prefix.

Keywords

logging

FAQs

Package last updated on 25 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts