Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LogConfig

The configuration of the log files.

since

v3.3.1

Hierarchy

  • LogConfig

Index

Properties

Properties

filePath

filePath: string

The absolute path of log files.

Ensure that the directory for the log files exists and is writable. You can use this parameter to rename the log files.

fileSize

fileSize: number

The size (KB) of a log file.

The default value is 1024 KB. If you set fileSize to 1024 KB, the SDK outputs at most 5 MB log files; if you set it to less than 1024 KB, the setting is invalid, and the maximum size of a log file is still 1024 KB.

level

level: number

The output log level of the SDK:

  • 0x0000: Do not output any log.
  • 0x0001: (Default) Output logs of the FATAL, ERROR, WARN and INFO level. We recommend setting your log filter as this level.
  • 0x0002: Output logs of the FATAL, ERROR and WARN level.
  • 0x0004: Output logs of the FATAL and ERROR level.
  • 0x0008: Output logs of the FATAL level.