FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_db::ns_portal::ns_daemon::ns_log Namespace Reference

Portal daemon logging configuration. More...

Classes

class  Logs
 

Functions

Value< Logsdeserialize (std::string_view str_raw_json)
 Deserializes a json string into a Logs class.
 
Value< std::string > serialize (Logs const &logs)
 Serializes a Logs class into a json string.
 

Detailed Description

Portal daemon logging configuration.

Defines log file paths for portal daemon processes including parent, child, and grandchild process logs. Manages per-PID log directory structure with support for serialization to pass logging configuration to spawned daemon processes.

Function Documentation

◆ deserialize()

Value< Logs > ns_db::ns_portal::ns_daemon::ns_log::deserialize ( std::string_view str_raw_json)
inlinenodiscardnoexcept

Deserializes a json string into a Logs class.

Deserializes JSON string into a Binds object.

Parameters
str_raw_jsonThe json string which to deserialize
Returns
The Logs class or the respective error

Definition at line 100 of file daemon.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ serialize()

Value< std::string > ns_db::ns_portal::ns_daemon::ns_log::serialize ( Logs const & logs)
inlinenodiscardnoexcept

Serializes a Logs class into a json string.

Parameters
logsThe Logs object to serialize
Returns
The serialized json data

Definition at line 122 of file daemon.hpp.

Here is the caller graph for this function: