stdx.log

Feature Description

The log package provides a unified logging API that abstracts the actual logging implementation.

API List

Functions

Function Name Description
getGlobalLogger(Array<Attr>) Gets the global Logger object.
setGlobalLogger(Logger) Sets the global Logger object.

Type Aliases

Type Alias Description
Attr Key-value pair type for log messages, which is an alias for (String, LogValue).

Interfaces

Interface Name Description
LogValue Provides an interface for serializing Cangjie data types to log output targets.

Classes

Class Name Description
Logger This abstract class provides basic logging and management functionality.
LogRecord The "payload" of log messages.
LogWriter LogWriter provides the capability to serialize Cangjie data types to log output targets.
NoopLogger A NO-OP (No Operation) implementation of Logger.

Structs

Struct Name Description
LogLevel LogLevel is the struct for log levels.

Exception Classes

Exception Class Name Description
LogException Used to handle log-related exceptions.