#include <log.h>
§ logListener
| typedef void(* gnash::LogFile::logListener) (const std::string &s) |
§ FileState
| Enumerator |
|---|
| CLOSED | |
| OPEN | |
| INPROGRESS | |
| IDLE | |
§ LogLevel
| Enumerator |
|---|
| LOG_SILENT | |
| LOG_NORMAL | |
| LOG_DEBUG | |
| LOG_EXTRA | |
§ ~LogFile()
| gnash::LogFile::~LogFile |
( |
| ) |
|
§ closeLog()
| bool gnash::LogFile::closeLog |
( |
| ) |
|
§ getActionDump()
| int gnash::LogFile::getActionDump |
( |
| ) |
const |
|
inline |
§ getDefaultInstance()
| LogFile & gnash::LogFile::getDefaultInstance |
( |
| ) |
|
|
static |
§ getNetwork()
| int gnash::LogFile::getNetwork |
( |
| ) |
const |
|
inline |
§ getParserDump()
| int gnash::LogFile::getParserDump |
( |
| ) |
const |
|
inline |
§ getStamp()
| bool gnash::LogFile::getStamp |
( |
| ) |
const |
|
inline |
§ getVerbosity()
| int gnash::LogFile::getVerbosity |
( |
| ) |
const |
|
inline |
§ getWriteDisk()
| bool gnash::LogFile::getWriteDisk |
( |
| ) |
const |
|
inline |
§ log() [1/2]
| void gnash::LogFile::log |
( |
const std::string & |
label, |
|
|
const std::string & |
msg |
|
) |
| |
|
inline |
Intended for use by log_*(). Thread-safe (locks _ioMutex)
- Parameters
-
| label | The label string ie: "ERROR" for "ERROR: <msg>" |
| msg | The message string ie: "bah" for "ERROR: bah" |
Referenced by gnash::processLog_abc(), gnash::processLog_action(), gnash::processLog_aserror(), gnash::processLog_debug(), gnash::processLog_error(), gnash::processLog_network(), gnash::processLog_parse(), gnash::processLog_security(), gnash::processLog_swferror(), gnash::processLog_trace(), and gnash::processLog_unimpl().
§ log() [2/2]
| void gnash::LogFile::log |
( |
const std::string & |
msg | ) |
|
Intended for use by log_*(). Thread-safe (locks _ioMutex)
- Parameters
-
§ registerLogCallback()
| void gnash::LogFile::registerLogCallback |
( |
logListener |
l | ) |
|
|
inline |
References DSOEXPORT, gnash::key::l, gnash::processLog_abc(), gnash::processLog_action(), gnash::processLog_aserror(), gnash::processLog_debug(), gnash::processLog_error(), gnash::processLog_network(), gnash::processLog_parse(), gnash::processLog_security(), gnash::processLog_swferror(), gnash::processLog_trace(), and gnash::processLog_unimpl().
§ removeLog()
| bool gnash::LogFile::removeLog |
( |
| ) |
|
Remove the log file.
Does NOT lock _ioMutex (should it?)
References OPEN.
§ setActionDump()
| void gnash::LogFile::setActionDump |
( |
int |
x | ) |
|
|
inline |
§ setLogFilename()
| void gnash::LogFile::setLogFilename |
( |
const std::string & |
fname | ) |
|
Set log filename.
If a log file is opened already, it will be closed by this call, and will be reopened on next use if needed.
References closeLog().
Referenced by gnash::Player::setScale().
§ setNetwork()
| void gnash::LogFile::setNetwork |
( |
int |
x | ) |
|
|
inline |
§ setParserDump()
| void gnash::LogFile::setParserDump |
( |
int |
x | ) |
|
|
inline |
§ setStamp()
| void gnash::LogFile::setStamp |
( |
bool |
b | ) |
|
|
inline |
§ setVerbosity() [1/2]
| void gnash::LogFile::setVerbosity |
( |
| ) |
|
|
inline |
§ setVerbosity() [2/2]
| void gnash::LogFile::setVerbosity |
( |
int |
x | ) |
|
|
inline |
§ setWriteDisk()
| void gnash::LogFile::setWriteDisk |
( |
bool |
b | ) |
|
The documentation for this class was generated from the following files: