mirror of
https://github.com/gabime/spdlog.git
synced 2025-04-29 03:53:54 +00: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* [])
|
||||
{
|
||||
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);
|
||||
return -1;
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -11,15 +11,18 @@
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
namespace spdlog {
|
||||
namespace sinks {
|
||||
namespace spdlog
|
||||
{
|
||||
namespace sinks
|
||||
{
|
||||
|
||||
/**
|
||||
* @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
|
||||
* of the message.
|
||||
*/
|
||||
class ansicolor_sink : public sink {
|
||||
class ansicolor_sink : public sink
|
||||
{
|
||||
public:
|
||||
ansicolor_sink(sink_ptr wrapped_sink);
|
||||
virtual ~ansicolor_sink();
|
||||
|
Loading…
x
Reference in New Issue
Block a user