mirror of https://github.com/gabime/spdlog.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
706 B
C++
23 lines
706 B
C++
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
|
|
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <mutex>
|
|
#include <exception>
|
|
#include "spdlog/common.h"
|
|
|
|
// by default, prints the error to stderr, thread safe
|
|
namespace spdlog {
|
|
namespace details {
|
|
class SPDLOG_API err_helper {
|
|
err_handler custom_err_handler_;
|
|
public:
|
|
void handle_ex(const std::string& origin, const source_loc& loc, const std::exception& ex) const noexcept;
|
|
void handle_unknown_ex(const std::string& origin, const source_loc& loc) const noexcept;
|
|
void set_err_handler(err_handler handler);
|
|
};
|
|
} // namespace details
|
|
} // namespace spdlog
|