The Idea
Create enumeration of flags representing fields that would be in logs.
Example
typedef enum
{
Reward = 1,
LastAction = 2,
Epsilon = 4,
RewardDiscount = 8
// ...
} LogFields;
void SetLoggingFields(uint32_t logFlags)
{
//...
}
void IAgentLogger::operator(...)
{
//...
while (...)
{
// Checking for flags and then output if set
}
}
The Idea
Create enumeration of flags representing fields that would be in logs.
Example