|
ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
|
contains a ocpp message logging abstraction More...
#include <ocpp_logging.hpp>
Public Member Functions | |
| MessageLogging (bool log_messages, const std::string &message_log_path, const std::string &output_file_name, bool log_to_console, bool detailed_log_to_console, bool log_to_file, bool log_to_html, bool log_security, bool session_logging, std::function< void(const std::string &message, MessageDirection direction)> message_callback) | |
| Creates a new MessageLogging object with the provided configuration. | |
| MessageLogging (bool log_messages, const std::string &message_log_path, const std::string &output_file_name, bool log_to_console, bool detailed_log_to_console, bool log_to_file, bool log_to_html, bool log_security, bool session_logging, std::function< void(const std::string &message, MessageDirection direction)> message_callback, LogRotationConfig log_rotation_config, std::function< void(LogRotationStatus status)> status_callback) | |
| Creates a new MessageLogging object with the provided configuration and enabled log rotation. | |
| void | charge_point (const std::string &message_type, const std::string &json_str) |
| Log a message originating from the charge point. | |
| void | central_system (const std::string &message_type, const std::string &json_str) |
| Log a message originating from the central system. | |
| void | sys (const std::string &msg) |
| Log a system message. | |
| void | security (const std::string &msg) |
| Log a security message. | |
| void | start_session_logging (const std::string &session_id, const std::string &log_path) |
| Start session logging (without log rotation) | |
| void | stop_session_logging (const std::string &session_id) |
| Stop session logging. | |
| std::string | get_message_log_path () |
| bool | session_logging_active () |
contains a ocpp message logging abstraction
| std::string ocpp::MessageLogging::get_message_log_path | ( | ) |
| bool ocpp::MessageLogging::session_logging_active | ( | ) |