UNPKG

netstorage

Version:

A TypeScript API and CLI for the Akamai NetStorage REST interface

26 lines (25 loc) 1.22 kB
import winston from 'winston'; /** * Winston logging levels using the `npm` levels preset. * * These represent log severity levels in ascending order of verbosity. * * @property {'error'} error - Critical errors that require immediate attention. * @property {'warn'} warn - Warnings that might indicate potential issues. * @property {'info'} info - General informational messages. * @property {'http'} http - HTTP-level logs, useful for request tracing. * @property {'verbose'} verbose - More detailed information for debugging. * @property {'debug'} debug - Debug-level logs with internal state details. * @property {'silly'} silly - Highly verbose logs, usually not needed in production. * * @see https://github.com/winstonjs/winston#logging-levels */ export type WinstonLogLevel = 'error' | 'warn' | 'info' | 'http' | 'verbose' | 'debug' | 'silly'; /** * Create a scoped Winston logger with colorized output. * * @param level - Minimum log level to emit. Defaults to 'info'. * @param scope - Optional string label for the logger (e.g. module name). * @returns Configured Winston logger instance. */ export declare function createLogger(level?: WinstonLogLevel, scope?: string): winston.Logger;