Skip to main content

Interface: Logger

Defined in: electron/utils/logger.ts:35

Interface for logger instance methods.

Remarks

Defines the contract for logger objects with consistent method signatures across all logging instances. All methods are synchronous and handle formatting internally.

Properties

debug()

debug: (message: string, ...args: unknown[]) => void

Defined in: electron/utils/logger.ts:42

Log debug information for development and troubleshooting.

Parameters

message

string

The debug message to log

args

...unknown[]

Additional arguments for context and structured data

Returns

void


error()

error: (message: string, error?: unknown, ...args: unknown[]) => void

Defined in: electron/utils/logger.ts:51

Log error messages with optional error objects.

Parameters

message

string

The error message to log

error?

unknown

Optional error object or additional context

args?

...unknown[]

Additional arguments for context and structured data

Returns

void


info()

info: (message: string, ...args: unknown[]) => void

Defined in: electron/utils/logger.ts:59

Log general informational messages.

Parameters

message

string

The information message to log

args

...unknown[]

Additional arguments for context and structured data

Returns

void


warn()

warn: (message: string, ...args: unknown[]) => void

Defined in: electron/utils/logger.ts:67

Log warning messages for potential issues.

Parameters

message

string

The warning message to log

args

...unknown[]

Additional arguments for context and structured data

Returns

void