mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
astyle
This commit is contained in:
parent
9230d9e63d
commit
495ecaeaee
@ -13,7 +13,8 @@ static void output_callback(zf_log_message *msg)
|
|||||||
int main(int, char* [])
|
int main(int, char* [])
|
||||||
{
|
{
|
||||||
g_f = fopen(g_path, "wb");
|
g_f = fopen(g_path, "wb");
|
||||||
if (!g_f) {
|
if (!g_f)
|
||||||
|
{
|
||||||
ZF_LOGE_AUX(ZF_LOG_STDERR, "Failed to open log file: %s", g_path);
|
ZF_LOGE_AUX(ZF_LOG_STDERR, "Failed to open log file: %s", g_path);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -11,15 +11,18 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
namespace spdlog {
|
namespace spdlog
|
||||||
namespace sinks {
|
{
|
||||||
|
namespace sinks
|
||||||
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The ansi_color_sink is a decorator around another sink and prefixes
|
* @brief The ansi_color_sink is a decorator around another sink and prefixes
|
||||||
* the output with an ANSI escape sequence color code depending on the severity
|
* the output with an ANSI escape sequence color code depending on the severity
|
||||||
* of the message.
|
* of the message.
|
||||||
*/
|
*/
|
||||||
class ansicolor_sink : public sink {
|
class ansicolor_sink : public sink
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
ansicolor_sink(sink_ptr wrapped_sink);
|
ansicolor_sink(sink_ptr wrapped_sink);
|
||||||
virtual ~ansicolor_sink();
|
virtual ~ansicolor_sink();
|
||||||
|
Loading…
Reference in New Issue
Block a user