enableLoggingToConsole static method

void enableLoggingToConsole(
  1. LogLevel level
)

Enables HERE SDK logging messages to console .

Enabled by default with LogLevel.logLevelInfo.

Setting a LogLevel defines the minimal level of messages which will be reported, based on the following hierarchy:

  1. LOG_LEVEL_INFO
  2. LOG_LEVEL_WARNING
  3. LOG_LEVEL_ERROR
  4. LOG_LEVEL_FATAL

For example, when setting LOG_LEVEL_ERROR, then LOG_LEVEL_INFO and LOG_LEVEL_WARNING will be excluded from the logs. All other levels will be logged. Therefore, only one call is needed. Another call will overwrite the previous minimal level. See LogLevel for the severity hierarchy and threshold behavior used by all HERE SDK logging APIs. Use LogAppender if you need to apply additional runtime filtering after this threshold.

  • level Log level.

Implementation

static void enableLoggingToConsole(LogLevel level) => $prototype.enableLoggingToConsole(level);