PolyFEM
Loading...
Searching...
No Matches
Logger.hpp File Reference
#include <polyfem/utils/DisableWarnings.hpp>
#include <spdlog/fmt/bundled/ranges.h>
#include <spdlog/fmt/ostr.h>
#include <spdlog/spdlog.h>
#include <polyfem/utils/EnableWarnings.hpp>
Include dependency graph for Logger.hpp:

Go to the source code of this file.

Namespaces

namespace  polyfem
 

Functions

spdlog::logger & polyfem::logger ()
 Retrieves the current logger.
 
spdlog::logger & polyfem::adjoint_logger ()
 Retrieves the current logger for adjoint.
 
void polyfem::set_logger (std::shared_ptr< spdlog::logger > logger)
 Setup a logger object to be used by Polyfem.
 
void polyfem::set_adjoint_logger (std::shared_ptr< spdlog::logger > logger)
 Setup a logger object to be used by adjoint Polyfem.
 
void polyfem::log_and_throw_error (const std::string &msg)
 
void polyfem::log_and_throw_adjoint_error (const std::string &msg)
 
template<typename... Args>
void polyfem::log_and_throw_error (const std::string &msg, const Args &...args)
 
template<typename... Args>
void polyfem::log_and_throw_adjoint_error (const std::string &msg, const Args &...args)