@feyond/console-logging
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

Usage

Install

npm install @feyond/console-logging

Import createLogger(level = info)

import { createLogger } from '@feyond/console-logging';

const logger = createLogger({
    // level?: LoggingLevelName
    // label?: string
    // timestamp?: boolean | string
    // format?: Format
    // transport?: Transport
});

logger.debug("test debug", { x: 1 });
logger.info("test info", { y: "aaa" });
logger.warn("test warn", { ss: true });
logger.error("test error", { z: { e: 8 } });

Package Sidebar

Install

npm i @feyond/console-logging

Weekly Downloads

14

Version

1.2.3

License

ISC

Unpacked Size

34.1 kB

Total Files

24

Last publish

Collaborators

  • feyond