Back to Homebridge

Interface Logging

docs/interfaces/Logging.html

2.0.21.7 KB
Original Source
  • Logging

Interface Logging

Represents a logging device which can be used directly as a function (for INFO logging) but also has dedicated logging functions for respective logging levels.

interface Logging {
debug: (message: string, ...parameters: any[]) => void;
error: (message: string, ...parameters: any[]) => void;
info: (message: string, ...parameters: any[]) => void;
log: (level: LogLevel, message: string, ...parameters: any[]) => void;
prefix: string;
success: (message: string, ...parameters: any[]) => void;
warn: (message: string, ...parameters: any[]) => void;
(message: string, ...parameters: any[]): void;
}

Logging(message: string, ...parameters: any[]): void

Parameters

  • message: string
  • ...parameters: any[]

Returns void

Index

Properties

debugerrorinfologprefixsuccesswarn

Properties

debug

debug: (message: string, ...parameters: any[]) => void

error

error: (message: string, ...parameters: any[]) => void

info

info: (message: string, ...parameters: any[]) => void

log

log: (level: LogLevel, message: string, ...parameters: any[]) => void

prefix

prefix: string

success

success: (message: string, ...parameters: any[]) => void

warn

warn: (message: string, ...parameters: any[]) => void

Settings

Member Visibility

  • Inherited

ThemeOSLightDark

On This Page

Properties debugerrorinfologprefixsuccesswarn