LSLogger Protocol Reference

Conforms to NSObject
Declared in LSLogger.h

Overview

Interface to be implemented to consume log from the library.

Instances of implemented classes are obtained by the library through the LSLoggerProvider instance set on [LSLightstreamerClient setLoggerProvider:].

– error: required method

Receives log messages at Error level.

- (void)error:(nonnull NSString *)line

Parameters

line

The message to be logged.

Declared In

LSLogger.h

– error:withException: required method

Receives log messages at Error level and a related exception.

- (void)error:(nonnull NSString *)line withException:(nonnull NSException *)exception

Parameters

line

The message to be logged.

exception

An Exception instance related to the current log message.

Declared In

LSLogger.h

– warn: required method

Receives log messages at Warn level.

- (void)warn:(nonnull NSString *)line

Parameters

line

The message to be logged.

Declared In

LSLogger.h

– warn:withException: required method

Receives log messages at Warn level and a related exception.

- (void)warn:(nonnull NSString *)line withException:(nonnull NSException *)exception

Parameters

line

The message to be logged.

exception

An Exception instance related to the current log message.

Declared In

LSLogger.h

– info: required method

Receives log messages at Info level.

- (void)info:(nonnull NSString *)line

Parameters

line

The message to be logged.

Declared In

LSLogger.h

– info:withException: required method

Receives log messages at Info level and a related exception.

- (void)info:(nonnull NSString *)line withException:(nonnull NSException *)exception

Parameters

line

The message to be logged.

exception

An Exception instance related to the current log message.

Declared In

LSLogger.h

– debug: required method

Receives log messages at Debug level.

- (void)debug:(nonnull NSString *)line

Parameters

line

The message to be logged.

Declared In

LSLogger.h

– debug:withException: required method

Receives log messages at Debug level and a related exception.

- (void)debug:(nonnull NSString *)line withException:(nonnull NSException *)exception

Parameters

line

The message to be logged.

exception

An Exception instance related to the current log message.

Declared In

LSLogger.h

– fatal: required method

Receives log messages at Fatal level.

- (void)fatal:(nonnull NSString *)line

Parameters

line

The message to be logged.

Declared In

LSLogger.h

– fatal:withException: required method

Receives log messages at Fatal level and a related exception.

- (void)fatal:(nonnull NSString *)line withException:(nonnull NSException *)exception

Parameters

line

The message to be logged.

exception

An Exception instance related to the current log message.

Declared In

LSLogger.h

  debugEnabled required method

Checks if this logger is enabled for the Debug level.

The property should be YES if this logger is enabled for Debug events, NO otherwise.

This property is intended to lessen the computational cost of disabled log Debug statements. Note that even if the property is NO, Debug log lines may be received anyway by the Debug methods.

@property (nonatomic, readonly, getter=isDebugEnabled) BOOL debugEnabled

Declared In

LSLogger.h

  infoEnabled required method

Checks if this logger is enabled for the Info level.

The property should be YES if this logger is enabled for Info events, NO otherwise.

This property is intended to lessen the computational cost of disabled log Info statements. Note that even if the property is NO, Info log lines may be received anyway by the Info methods.

@property (nonatomic, readonly, getter=isInfoEnabled) BOOL infoEnabled

Declared In

LSLogger.h

  warnEnabled required method

Checks if this logger is enabled for the Warn level.

The property should be YES if this logger is enabled for Warn events, NO otherwise.

This property is intended to lessen the computational cost of disabled log Warn statements. Note that even if the property is NO, Warn log lines may be received anyway by the Warn methods.

@property (nonatomic, readonly, getter=isWarnEnabled) BOOL warnEnabled

Declared In

LSLogger.h

  errorEnabled required method

Checks if this logger is enabled for the Error level.

The property should be YES if this logger is enabled for Error events, NO otherwise.

This property is intended to lessen the computational cost of disabled log Error statements. Note that even if the property is NO, Error log lines may be received anyway by the Error methods.

@property (nonatomic, readonly, getter=isErrorEnabled) BOOL errorEnabled

Declared In

LSLogger.h

  fatalEnabled required method

Checks if this logger is enabled for the Fatal level.

The property should be YES if this logger is enabled for Fatal events, NO otherwise.

This property is intended to lessen the computational cost of disabled log Fatal statements. Note that even if the property is NO, Fatal log lines may be received anyway by the Fatal methods.

@property (nonatomic, readonly, getter=isFatalEnabled) BOOL fatalEnabled

Declared In

LSLogger.h