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 |
| android.speech.recognition.Logger.Logger | ( | ) | [protected] |
Prevent construction.
| virtual android.speech.recognition.Logger.~Logger | ( | ) | [protected, virtual] |
Prevent destruction.
| static UAPI_EXPORT LoggerProxy android.speech.recognition.Logger.getInstance | ( | ReturnCode::Type & | returnCode | ) | [static] |
Returns the logger instance, creating one if necessary.
| returnCode | returns SUCCESS unless a fatal error occurs returns SUCCESS |
| static UAPI_EXPORT Logger* android.speech.recognition.Logger.getExistingInstance | ( | ) | [static] |
Returns the logger instance, if one already exists.
| virtual void android.speech.recognition.Logger.setLoggingLevel | ( | LogLevel | level, | |
| ReturnCode::Type & | returnCode | |||
| ) | [pure virtual] |
Sets the logging level.
| level | the logging level | |
| returnCode | the return code |
| virtual LogLevel android.speech.recognition.Logger.getLoggingLevel | ( | ) | const [pure virtual] |
returns the current logging level
| virtual void android.speech.recognition.Logger.setPath | ( | const char * | path, | |
| ReturnCode::Type & | returnCode | |||
| ) | [pure virtual] |
Sets the path that will contain the logs.
| 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.
| 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.
| 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.
| 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.
| format | format of variable arguments that follow |
1.5.3