src/core/utils/log.cpp
LogFormat DefaultLogger::getFormatFromString(const std::string& format) {
    if(format == "SHORT") {
        return LogFormat::SHORT;
    }
    if(format == "DEFAULT") {
        return LogFormat::DEFAULT;
    }
    if(format == "LONG") {
        return LogFormat::LONG;
    }

    throw std::invalid_argument("unknown log format");
}
/**
 * @throws std::invalid_argument If the string does not correspond with an existing log format
 */
@throws std::invalid_argument If the string does not correspond with an existing log format
@throws std :: invalid_argument If the string does not correspond with an existing log format
LogFormat DefaultLogger::getFormatFromString(const std::string& format) {
    if(format == "SHORT") {
        return LogFormat::SHORT;
    }
    if(format == "DEFAULT") {
        return LogFormat::DEFAULT;
    }
    if(format == "LONG") {
        return LogFormat::LONG;
    }
    throw std::invalid_argument("unknown log format");
}
LogFormat DefaultLogger :: getFormatFromString ( const std :: string & format ) { if ( format == " " ) { return LogFormat :: SHORT ; } if ( format == " " ) { return LogFormat :: DEFAULT ; } if ( format == " " ) { return LogFormat :: LONG ; } throw std :: invalid_argument ( " " ) ; }
@throws std::invalid_argument If the string does not correspond with an existing log format
@throws std :: invalid_argument If the string does not correspond with an existing log format