File

src/core/services/logger/smart-logger.service.ts

Description

Service for centralized logging throughout the Smart Component Library. Supports configurable log levels and prefixes all log messages.

Index

Methods

Constructor

constructor()

Methods

debug
debug(message: string, ...args: any[])

Log a debug message.

Parameters :
Name Type Optional Description
message string No
  • The debug message to log (supports console formatting like %s, %d, %o, etc.)
args any[] No
  • Additional arguments for formatting or to log
Returns : void
error
error(message: string, ...args: any[])

Log an error message.

Parameters :
Name Type Optional Description
message string No
  • The error message to log (supports console formatting like %s, %d, %o, etc.)
args any[] No
  • Additional arguments for formatting or to log
Returns : void
info
info(message: string, ...args: any[])

Log an info message.

Parameters :
Name Type Optional Description
message string No
  • The info message to log (supports console formatting like %s, %d, %o, etc.)
args any[] No
  • Additional arguments for formatting or to log
Returns : void
log
log(logLevel: SmartLogLevel, message: string, ...args: any[])

Generic log method that outputs messages based on the configured log level.

Parameters :
Name Type Optional Description
logLevel SmartLogLevel No
  • The log level for this message
message string No
  • The message to log (supports console formatting like %s, %d, %o, etc.)
args any[] No
  • Additional arguments for formatting or to log
Returns : void
warning
warning(message: string, ...args: any[])

Log a warning message.

Parameters :
Name Type Optional Description
message string No
  • The warning message to log (supports console formatting like %s, %d, %o, etc.)
args any[] No
  • Additional arguments for formatting or to log
Returns : void

results matching ""

    No results matching ""