Commit 495ecaea authored by gabime's avatar gabime

astyle

parent 9230d9e6
...@@ -13,7 +13,8 @@ static void output_callback(zf_log_message *msg) ...@@ -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;
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -11,15 +11,18 @@ ...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment