Inherits from NSObject
Declared in LELogger.h

Overview

Use this class to configure the log level that you want the LEGO Device SDK to use.

You may provide your own log-writer that all log from the LEGO Device SDK will be written to, by setting the logWriter property.

Tasks

Getting an instance of the Logger

Properties

debugLoggingEnabled

Convenience property for checking if the log level is set to debug (or below)

@property (nonatomic, readonly, getter=isDebugLoggingEnabled) BOOL debugLoggingEnabled

Discussion

Convenience property for checking if the log level is set to debug (or below)

Declared In

LELogger.h

logLevel

The log level. Default is Error.

@property (nonatomic, readwrite) LELoggerLevel logLevel

Discussion

The log level. Default is Error.

For AppStore build you should set the log level to Error or Warn. The library will not log debug info in AppStore builds.

Declared In

LELogger.h

logWriter

You may set a custom log writer that all log from the library will be written to. If set to nil (the default) log will be from the library using the standard NSLog

@property (nonatomic, strong) id<LELogWriter> logWriter

Discussion

You may set a custom log writer that all log from the library will be written to. If set to nil (the default) log will be from the library using the standard NSLog

Declared In

LELogger.h

Class Methods

defaultLogger

The shared LELogger

+ (instancetype)defaultLogger

Return Value

The shared LELogger

Declared In

LELogger.h