![]() |
Ginkgo Generated from branch based on main. Ginkgo version 1.10.0
A numerical linear algebra library targeting many-core architectures
|
EnableLogging is a mixin which should be inherited by any class which wants to enable logging. More...
#include <ginkgo/core/log/logger.hpp>
Public Member Functions | |
void | add_logger (std::shared_ptr< const Logger > logger) override |
Adds a new logger to the list of subscribed loggers. | |
void | remove_logger (const Logger *logger) override |
Removes a logger from the list of subscribed loggers. | |
void | remove_logger (ptr_param< const Logger > logger) |
const std::vector< std::shared_ptr< const Logger > > & | get_loggers () const override |
Returns the vector containing all loggers registered at this object. | |
void | clear_loggers () override |
Remove all loggers registered at this object. | |
Public Member Functions inherited from gko::log::Loggable | |
void | remove_logger (ptr_param< const Logger > logger) |
EnableLogging is a mixin which should be inherited by any class which wants to enable logging.
All the received events are passed to the loggers this class contains.
|
inlineoverridevirtual |
Adds a new logger to the list of subscribed loggers.
logger | the logger to add |
Implements gko::log::Loggable.
Reimplemented in gko::Executor.
|
inlineoverridevirtual |
Remove all loggers registered at this object.
Implements gko::log::Loggable.
|
inlineoverridevirtual |
Returns the vector containing all loggers registered at this object.
Implements gko::log::Loggable.
|
inlineoverridevirtual |
Removes a logger from the list of subscribed loggers.
logger | the logger to remove |
Implements gko::log::Loggable.
Reimplemented in gko::Executor.