Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

SDLLogTarget Protocol Reference

Section Contents

Overview

A protocol describing a place logs from SDLLogManager are logged to

+logger

A simple convenience initializer to create the object. This should not start up the logger.

Objective-C

+ (nonnull id<SDLLogTarget>)logger;

Swift

static func logger() -> SDLLogTarget

Return Value

An instance of the logger.

-setupLogger

A call to setup the logger in whatever manner it needs to do so.

Objective-C

- (BOOL)setupLogger;

Swift

func setupLogger() -> Bool

Return Value

Whether or not the logger set up correctly.

-logWithLog:formattedLog:

Log a particular log using the model and the formatted log message to the target.

Objective-C

- (void)logWithLog:(nonnull SDLLogModel *)log
      formattedLog:(nonnull NSString *)stringLog;

Swift

func log(withLog log: SDLLogModel, formattedLog stringLog: String)

Parameters

log

The log model, if you can log additional data, such as the log level, use this

stringLog

The formatted message

-teardownLogger

The log target should be torn down. e.g. file handles should be closed

Objective-C

- (void)teardownLogger;

Swift

func teardownLogger()
View on GitHub.com
Previous Section Next Section