#include <log.h>
typedef void(* gnash::LogFile::logListener) (const std::string &s) |
Enumerator |
---|
CLOSED |
|
OPEN |
|
INPROGRESS |
|
IDLE |
|
Enumerator |
---|
LOG_SILENT |
|
LOG_NORMAL |
|
LOG_DEBUG |
|
LOG_EXTRA |
|
gnash::LogFile::~LogFile |
( |
| ) |
|
bool gnash::LogFile::closeLog |
( |
| ) |
|
int gnash::LogFile::getActionDump |
( |
| ) |
const |
|
inline |
LogFile & gnash::LogFile::getDefaultInstance |
( |
| ) |
|
|
static |
int gnash::LogFile::getNetwork |
( |
| ) |
const |
|
inline |
int gnash::LogFile::getParserDump |
( |
| ) |
const |
|
inline |
bool gnash::LogFile::getStamp |
( |
| ) |
const |
|
inline |
int gnash::LogFile::getVerbosity |
( |
| ) |
const |
|
inline |
bool gnash::LogFile::getWriteDisk |
( |
| ) |
const |
|
inline |
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().
void gnash::LogFile::log |
( |
const std::string & |
msg | ) |
|
Intended for use by log_*(). Thread-safe (locks _ioMutex)
- Parameters
-
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().
bool gnash::LogFile::removeLog |
( |
| ) |
|
Remove the log file.
Does NOT lock _ioMutex (should it?)
References OPEN.
void gnash::LogFile::setActionDump |
( |
int |
x | ) |
|
|
inline |
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(), and fname.
Referenced by gnash::Player::setScale().
void gnash::LogFile::setNetwork |
( |
int |
x | ) |
|
|
inline |
void gnash::LogFile::setParserDump |
( |
int |
x | ) |
|
|
inline |
void gnash::LogFile::setStamp |
( |
bool |
b | ) |
|
|
inline |
void gnash::LogFile::setVerbosity |
( |
| ) |
|
|
inline |
void gnash::LogFile::setVerbosity |
( |
int |
x | ) |
|
|
inline |
void gnash::LogFile::setWriteDisk |
( |
bool |
b | ) |
|
The documentation for this class was generated from the following files: