#include <gcs_logging_system.h>
◆ Gcs_file_sink() [1/2]
Gcs_file_sink::Gcs_file_sink |
( |
const std::string & |
file_name, |
|
|
const std::string & |
dir_name |
|
) |
| |
◆ ~Gcs_file_sink()
Gcs_file_sink::~Gcs_file_sink |
( |
| ) |
|
|
overridedefault |
◆ Gcs_file_sink() [2/2]
◆ finalize()
File sink finalization method.
- Return values
-
GCS_OK | in case everything goes well. Any other value of gcs_error in case of error. |
Implements Common_interface.
◆ get_file_name()
enum_gcs_error Gcs_file_sink::get_file_name |
( |
char * |
file_name_buffer | ) |
const |
Return the full path of the file that shall be created.
If the path is too long GCS_NOK is returned.
- Parameters
-
[out] | file_name_buffer | Buffer that will contain the resulting path |
- Return values
-
GCS_OK | in case everything goes well. Any other value of gcs_error in case of error |
◆ get_information()
const std::string Gcs_file_sink::get_information |
( |
| ) |
const |
|
overridevirtual |
The purpose of this method is to return information on the sink such as its location.
Implements Sink_interface.
◆ initialize()
File sink initialization method.
- Return values
-
GCS_OK | in case everything goes well. Any other value of gcs_error in case of error. |
Implements Common_interface.
◆ log_event() [1/2]
void Gcs_file_sink::log_event |
( |
const char * |
message, |
|
|
size_t |
message_size |
|
) |
| |
|
overridevirtual |
Print the received message to a log file.
- Parameters
-
message | rendered stream of the logging message |
message_size | logging message size |
Implements Sink_interface.
◆ log_event() [2/2]
void Gcs_file_sink::log_event |
( |
const std::string & |
message | ) |
|
|
overridevirtual |
Print the received message to a log file.
- Parameters
-
message | rendered stream of the logging message |
Implements Sink_interface.
◆ operator=()
◆ m_dir_name
std::string Gcs_file_sink::m_dir_name |
|
private |
◆ m_fd
◆ m_file_name
std::string Gcs_file_sink::m_file_name |
|
private |
◆ m_initialized
bool Gcs_file_sink::m_initialized |
|
private |
The documentation for this class was generated from the following files: