setAppender static method
- LogLevel level,
- 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.
-
levelLog level. -
pathAbsolute 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);