android.speech.recognition.Logger Class Reference

List of all members.


Detailed Description

Debug logging.

WARNING: Loggers are hierarchical in nature. The parent logger must not be deallocated before its children or a crash may result. Be extremely careful if you choose to allocate Logger instances on the heap!.

Public Member Functions

virtual void setLoggingLevel (LogLevel level, ReturnCode::Type &returnCode)=0
virtual LogLevel getLoggingLevel () const =0
virtual void setPath (const char *path, ReturnCode::Type &returnCode)=0
virtual void error (const char *fn, const char *lpszFormat,...)=0
virtual void warn (const char *fn, const char *lpszFormat,...)=0
virtual void info (const char *fn, const char *lpszFormat,...)=0
virtual void trace (const char *fn, const char *lpszFormat,...)=0

Static Public Member Functions

static UAPI_EXPORT
LoggerProxy 
getInstance (ReturnCode::Type &returnCode)
static UAPI_EXPORT
Logger
getExistingInstance ()

Protected Member Functions

 Logger ()
virtual ~Logger ()

Friends

class SmartProxy
class LoggerProxy


Constructor & Destructor Documentation

android.speech.recognition.Logger.Logger (  )  [protected]

Prevent construction.

virtual android.speech.recognition.Logger.~Logger (  )  [protected, virtual]

Prevent destruction.


Member Function Documentation

static UAPI_EXPORT LoggerProxy android.speech.recognition.Logger.getInstance ( ReturnCode::Type returnCode  )  [static]

Returns the logger instance, creating one if necessary.

Parameters:
returnCode returns SUCCESS unless a fatal error occurs returns SUCCESS
Returns:
the singleton instance

static UAPI_EXPORT Logger* android.speech.recognition.Logger.getExistingInstance (  )  [static]

Returns the logger instance, if one already exists.

Returns:
the singleton instance. Can return 0 if the logger could not be created.

virtual void android.speech.recognition.Logger.setLoggingLevel ( LogLevel  level,
ReturnCode::Type returnCode 
) [pure virtual]

Sets the logging level.

Parameters:
level the logging level
returnCode the return code
See also:
Logger.LogLevel

virtual LogLevel android.speech.recognition.Logger.getLoggingLevel (  )  const [pure virtual]

returns the current logging level

Returns:
the logging level of the logger.

virtual void android.speech.recognition.Logger.setPath ( const char *  path,
ReturnCode::Type returnCode 
) [pure virtual]

Sets the path that will contain the logs.

Parameters:
path the path of the log file
returnCode SUCCESS unless a fatal error occurs. ILLEGAL_ARGUMENT if path is null or empty. INVALID_STATE if file handle is null. FILE_NOT_FOUND if could not open the path.

virtual void android.speech.recognition.Logger.error ( const char *  fn,
const char *  lpszFormat,
  ... 
) [pure virtual]

Logs a message using the LEVEL_ERROR logging level.

Parameters:
format format of variable arguments that follow

virtual void android.speech.recognition.Logger.warn ( const char *  fn,
const char *  lpszFormat,
  ... 
) [pure virtual]

Logs a message using the LEVEL_WARN logging level.

Parameters:
format format of variable arguments that follow

virtual void android.speech.recognition.Logger.info ( const char *  fn,
const char *  lpszFormat,
  ... 
) [pure virtual]

Logs a message using the LEVEL_INFO logging level.

Parameters:
format format of variable arguments that follow

virtual void android.speech.recognition.Logger.trace ( const char *  fn,
const char *  lpszFormat,
  ... 
) [pure virtual]

Logs a message using the LEVEL_TRACE logging level.

Parameters:
format format of variable arguments that follow


Generated on Thu May 1 17:16:42 2008 for UAPI by  doxygen 1.5.3