slf-debug
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

SLF Debug Driver

SLF Debug Driver is a factory for using Debug.js for logging SLF events.

Purpose

Provide colored logs with timestamps and debug level info to the terminal.

SLF Debug Output

Installation

Install the SLF Debug Driver as well as Debug.js

npm install slf-debug debug

Usage

Provide the SLF Debug Driver as the factory when configuring SLF. Use Debug.js to configure which logs should be displayed.

import debug from 'debug';
import { LoggerFactory } from 'slf';
import slfDebug from 'slf-debug';

debug.enable('viewdb:*');
LoggerFactory.setFactory(slfDebug);

/slf-debug/

    Package Sidebar

    Install

    npm i slf-debug

    Weekly Downloads

    131

    Version

    0.3.1

    License

    MIT

    Unpacked Size

    7.29 kB

    Total Files

    7

    Last publish

    Collaborators

    • surikat