Structure ansys::dpf::core::logging
Last update: 25.03.2026
Inner classes
- ansys::dpf::core::logging::LoggerConfig
- ansys::dpf::core::logging::internal
- ansys::dpf::core::logging::Logger
Members
Public types
Enumeration type eLogLevel
enum eLogLevel {
Unknown = -1,
Trace = 0,
Debug = 1,
Info = 2,
Warn = 3,
Error = 4,
Critical = 5
}
Enumerator Unknown
Enumerator Trace
Enumerator Debug
Enumerator Info
Enumerator Warn
Enumerator Error
Enumerator Critical
Enumeration type eLoggerSink
enum eLoggerSink {
Unknown = -1,
Stdout = 0,
File = 1
}
Enumerator Unknown
Enumerator Stdout
Enumerator File
Public static functions
Function flushAllLoggers
static void ansys::dpf::core::logging::flushAllLoggers()
Flush all loggers. This function is thread-safe.
Return type: void
Function registerLogger
static Logger ansys::dpf::core::logging::registerLogger(std::string const &logger_name)
Registers a logger into the logging infrastructure. This function is thread-safe.
Parameters:
- logger_name: The logger name. This will appear in the log message to identify the message.
Returns:
std::shared_ptr<Logger> The registered logger.
See also: LoggerConfig
Parameters:
- std::string const & logger_name
Return type: Logger
Function getLogger
static Logger ansys::dpf::core::logging::getLogger(std::string const &logger_name)
Get a Logger by its name. This function is thread-safe.
Parameters:
- logger_name: The logger name. This will appear in the log message to identify the message.
Returns:
std::shared_ptr<Logger>
Parameters:
- std::string const & logger_name
Return type: Logger