LogLevels#

struct LogLevels#

Stores a set of log levels per each logging class, including the SG_ALL class.

Internally uses an array, so pretty efficient to access and update.

Public Functions

LogLevels()#

creates a LogLevels with all priorities set to SG_UNSET_LOG_PRIORITY

std::string to_string() const#

create a standard string representation of the log levels, in the format which could be parsed by parseLogSpecFromString

sgDebugPriority get(sgDebugClass c) const#

get the debug priority for a level, falling back to SG_ALL if the specific class is not set