Lightstreamer tvOS Client  2.1.2
Native tvOS Client library for Lightstreamer
Instance Methods | Properties | List of all members
<LSLogger > Protocol Reference

Interface to be implemented to consume log from the library. More...

#import <LSLogger.h>

Inheritance diagram for <LSLogger >:

Instance Methods

(void) - error:
 Receives log messages at Error level. More...
 
(void) - error:withException:
 Receives log messages at Error level and a related exception. More...
 
(void) - warn:
 Receives log messages at Warn level. More...
 
(void) - warn:withException:
 Receives log messages at Warn level and a related exception. More...
 
(void) - info:
 Receives log messages at Info level. More...
 
(void) - info:withException:
 Receives log messages at Info level and a related exception. More...
 
(void) - debug:
 Receives log messages at Debug level. More...
 
(void) - debug:withException:
 Receives log messages at Debug level and a related exception. More...
 
(void) - fatal:
 Receives log messages at Fatal level. More...
 
(void) - fatal:withException:
 Receives log messages at Fatal level and a related exception. More...
 

Properties

BOOL debugEnabled
 Checks if this logger is enabled for the Debug level. More...
 
BOOL infoEnabled
 Checks if this logger is enabled for the Info level. More...
 
BOOL warnEnabled
 Checks if this logger is enabled for the Warn level. More...
 
BOOL errorEnabled
 Checks if this logger is enabled for the Error level. More...
 
BOOL fatalEnabled
 Checks if this logger is enabled for the Fatal level. More...
 

Detailed Description

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 setLoggerProvider: (LSLightstreamerClient).

Method Documentation

◆ debug:()

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

Receives log messages at Debug level.

Parameters
lineThe message to be logged.

◆ debug:withException:()

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

Receives log messages at Debug level and a related exception.

Parameters
lineThe message to be logged.
exceptionAn Exception instance related to the current log message.

◆ error:()

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

Receives log messages at Error level.

Parameters
lineThe message to be logged.

◆ error:withException:()

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

Receives log messages at Error level and a related exception.

Parameters
lineThe message to be logged.
exceptionAn Exception instance related to the current log message.

◆ fatal:()

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

Receives log messages at Fatal level.

Parameters
lineThe message to be logged.

◆ fatal:withException:()

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

Receives log messages at Fatal level and a related exception.

Parameters
lineThe message to be logged.
exceptionAn Exception instance related to the current log message.

◆ info:()

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

Receives log messages at Info level.

Parameters
lineThe message to be logged.

◆ info:withException:()

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

Receives log messages at Info level and a related exception.

Parameters
lineThe message to be logged.
exceptionAn Exception instance related to the current log message.

◆ warn:()

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

Receives log messages at Warn level.

Parameters
lineThe message to be logged.

◆ warn:withException:()

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

Receives log messages at Warn level and a related exception.

Parameters
lineThe message to be logged.
exceptionAn Exception instance related to the current log message.

Property Documentation

◆ debugEnabled

- (BOOL LSLogger) debugEnabled
readnonatomicassign

Checks if this logger is enabled for the Debug level.


The property should be true if this logger is enabled for Debug events, false otherwise.
This property is intended to lessen the computational cost of disabled log Debug statements. Note that even if the property is false, Debug log lines may be received anyway by the Debug methods.

◆ errorEnabled

- (BOOL LSLogger) errorEnabled
readnonatomicassign

Checks if this logger is enabled for the Error level.


The property should be true if this logger is enabled for Error events, false otherwise.
This property is intended to lessen the computational cost of disabled log Error statements. Note that even if the property is false, Error log lines may be received anyway by the Error methods.

◆ fatalEnabled

- (BOOL LSLogger) fatalEnabled
readnonatomicassign

Checks if this logger is enabled for the Fatal level.


The property should be true if this logger is enabled for Fatal events, false otherwise.
This property is intended to lessen the computational cost of disabled log Fatal statements. Note that even if the property is false, Fatal log lines may be received anyway by the Fatal methods.

◆ infoEnabled

- (BOOL LSLogger) infoEnabled
readnonatomicassign

Checks if this logger is enabled for the Info level.


The property should be true if this logger is enabled for Info events, false otherwise.
This property is intended to lessen the computational cost of disabled log Info statements. Note that even if the property is false, Info log lines may be received anyway by the Info methods.

◆ warnEnabled

- (BOOL LSLogger) warnEnabled
readnonatomicassign

Checks if this logger is enabled for the Warn level.


The property should be true if this logger is enabled for Warn events, false otherwise.
This property is intended to lessen the computational cost of disabled log Warn statements. Note that even if the property is false, Warn log lines may be received anyway by the Warn methods.


The documentation for this protocol was generated from the following file: