setAppender static method

void setAppender(
  1. LogLevel level,
  2. String path
)

Sets a custom log appender that will write SDK log messages to a file.

This overwrites a previous custom log appender set by user. Note, that setting the custom appender does not disable logging to the console made by SDK, in order to do that use LogControl.disableLoggingToConsole API.

  • level Log level.

  • path Absolute path to a file that the application has read/write permissions.

Throws LogControlInvalidPathExceptionException. LogControlInvalidPathExceptionException Indicates that the file path is invalid or not writeable.

Implementation

static void setAppender(LogLevel level, String path) => $prototype.setAppender(level, path);