setAppender static method
- LogLevel level,
- String path
Sets a custom log appender that will write HERE SDK log messages to a file.
This overwrites a previous custom log appender set by user. Note, that setting a custom appender does not disable logging to the console made by the HERE SDK, in order to do that use the 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);