Sip Endpoint SDK for Apple OS
 All Classes Functions Properties
GSDefaultLogger Class Reference

#import <GSDefaultLogger.h>

Inheritance diagram for GSDefaultLogger:
<GSLogger>

List of all members.

Public Member Functions

(id) - initWithName:
(id) - initWithName:logLevel:
(id) - initWithName:logFile:logLevel:
(BOOL) - setupEnabledLogLevels:
- Public Member Functions inherited from
(NSString *) - getLogLevel
(id< GSLogger >) - createChildLogger:
(id< GSLogger >) - createChildLogger:logLevel:
(void) - logDebugMessage:
(void) - logDebugMessageWithFormat:
(void) - logInfoMessage:
(void) - logInfoMessageWithFormat:
(void) - logWarningMessage:
(void) - logWarningMessageWithFormat:
(void) - logErrorMessage:
(void) - logErrorMessageWithFormat:
(void) - logFatalErrorMessage:
(void) - logFatalErrorMessageWithFormat:
(bool) - isDebugEnabled
(bool) - isInfoEnabled
(bool) - isWarningEnabled
(bool) - isErrorEnabled
(bool) - isFatalErrorEnabled

Properties

NSString * name
NSString * logFile
NSString * logLevel
bool isDebugLevel
bool isInfoLevel
bool isWarningLevel
bool isErrorLevel
bool isFatalErrorLevel

Detailed Description

A default implementation of the GSLogger protocol. This class uses "NSLog" to log all messages.

See also:
GSLogger

Definition at line 18 of file GSDefaultLogger.h.


Member Function Documentation

- (id) initWithName: (NSString *)  name

Initializes an instances of the logger with the specified name.

Parameters:
namethe name for this logger instance
Returns:
an instance of the logger or nil if the initialization is not successful.
- (id) initWithName: (NSString *)  name
logFile: (NSString *)  file
logLevel: (NSString *)  logLevel 

Initializes an instances of the logger with the specified name and logfile.

Parameters:
namethe name for this logger instance
filethe log file name and path
logLevelthe value of the log level: debug; info; warn; error; fatal
Returns:
an instance of the logger or nil if the initialization is not successful.
- (id) initWithName: (NSString *)  name
logLevel: (NSString *)  logLevel 

Initializes an instances of the logger with the specified name.

Parameters:
namethe name for this logger instance
logLevelthe value of log level: debug; info; warn; error; fatal
Returns:
an instance of the logger or nil if the initialization is not successful.
- (BOOL) setupEnabledLogLevels: (NSString *)  logLevel

Assign properties: isDebugLevel, isInfoLevel, isWarningLevel, isErrorLevel, isFatalErrorLevel to YES or NO depends on logLevel

Parameters:
logLevelthe value of log level: debug; info; warn; error; fatal

Property Documentation

- (NSString *) name
readwritenonatomiccopy

The name of this logger instance.

Definition at line 20 of file GSDefaultLogger.h.


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