#include <webdriver_logging.h>
webdriver::FileLog::FileLog |
( |
const FilePath & |
path, |
|
|
LogLevel |
level |
|
) |
| |
Creates a log file at the given path.
virtual webdriver::FileLog::~FileLog |
( |
| ) |
|
|
virtual |
static FileLog* webdriver::FileLog::CreateFileLog |
( |
const FilePath::StringType & |
log_name, |
|
|
LogLevel |
level |
|
) |
| |
|
static |
Creates a log file with the given name in the current directory. If the current directory is not writable, the system's temp directory is used.
- Parameters
-
log_name | file name |
level | log level |
static FileLog* webdriver::FileLog::Get |
( |
| ) |
|
|
static |
bool webdriver::FileLog::GetLogContents |
( |
std::string * |
contents | ) |
const |
bool webdriver::FileLog::IsOpen |
( |
| ) |
const |
Returns whether the log refers to an open file.
virtual void webdriver::FileLog::Log |
( |
LogLevel |
level, |
|
|
const base::Time & |
time, |
|
|
const std::string & |
message |
|
) |
| |
|
virtual |
add single log item
- Parameters
-
level | log level |
time | timestamp |
message | log message |
Implements webdriver::LogHandler.
const FilePath& webdriver::FileLog::path |
( |
| ) |
const |
Returns the path of the log file. The file is not guaranteed to exist.
void webdriver::FileLog::set_min_log_level |
( |
LogLevel |
level | ) |
|
static void webdriver::FileLog::SetGlobalLog |
( |
FileLog * |
log | ) |
|
|
static |
The documentation for this class was generated from the following file: