Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
495ecaea
Commit
495ecaea
authored
Apr 02, 2016
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
astyle
parent
9230d9e6
Show whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
8 additions
and
4 deletions
+8
-4
.travis.yml
.travis.yml
+0
-0
CMakeLists.txt
CMakeLists.txt
+0
-0
README.md
README.md
+0
-0
Makefile
bench/Makefile
+0
-0
run_all.sh
bench/run_all.sh
+0
-0
spdlog-async.cpp
bench/spdlog-async.cpp
+0
-0
zf_log-bench-mt.cpp
bench/zf_log-bench-mt.cpp
+0
-0
zf_log-bench.cpp
bench/zf_log-bench.cpp
+2
-1
example.cpp
example/example.cpp
+0
-0
example.vcxproj
example/example.vcxproj
+0
-0
async_logger.h
include/spdlog/async_logger.h
+0
-0
common.h
include/spdlog/common.h
+0
-0
async_log_helper.h
include/spdlog/details/async_log_helper.h
+0
-0
async_logger_impl.h
include/spdlog/details/async_logger_impl.h
+0
-0
file_helper.h
include/spdlog/details/file_helper.h
+0
-0
format.cc
include/spdlog/details/format.cc
+0
-0
format.h
include/spdlog/details/format.h
+0
-0
line_logger_fwd.h
include/spdlog/details/line_logger_fwd.h
+0
-0
line_logger_impl.h
include/spdlog/details/line_logger_impl.h
+0
-0
log_msg.h
include/spdlog/details/log_msg.h
+0
-0
logger_impl.h
include/spdlog/details/logger_impl.h
+0
-0
mpmc_bounded_q.h
include/spdlog/details/mpmc_bounded_q.h
+0
-0
os.h
include/spdlog/details/os.h
+0
-0
pattern_formatter_impl.h
include/spdlog/details/pattern_formatter_impl.h
+0
-0
registry.h
include/spdlog/details/registry.h
+0
-0
spdlog_impl.h
include/spdlog/details/spdlog_impl.h
+0
-0
formatter.h
include/spdlog/formatter.h
+0
-0
logger.h
include/spdlog/logger.h
+0
-0
android_sink.h
include/spdlog/sinks/android_sink.h
+0
-0
ansicolor_sink.h
include/spdlog/sinks/ansicolor_sink.h
+6
-3
No files found.
.travis.yml
View file @
495ecaea
CMakeLists.txt
View file @
495ecaea
README.md
View file @
495ecaea
bench/Makefile
View file @
495ecaea
bench/run_all.sh
View file @
495ecaea
bench/spdlog-async.cpp
View file @
495ecaea
bench/zf_log-bench-mt.cpp
View file @
495ecaea
bench/zf_log-bench.cpp
View file @
495ecaea
...
@@ -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
;
}
}
...
...
example/example.cpp
View file @
495ecaea
example/example.vcxproj
View file @
495ecaea
include/spdlog/async_logger.h
View file @
495ecaea
include/spdlog/common.h
View file @
495ecaea
include/spdlog/details/async_log_helper.h
View file @
495ecaea
include/spdlog/details/async_logger_impl.h
View file @
495ecaea
include/spdlog/details/file_helper.h
View file @
495ecaea
include/spdlog/details/format.cc
View file @
495ecaea
include/spdlog/details/format.h
View file @
495ecaea
This source diff could not be displayed because it is too large. You can
view the blob
instead.
include/spdlog/details/line_logger_fwd.h
View file @
495ecaea
include/spdlog/details/line_logger_impl.h
View file @
495ecaea
include/spdlog/details/log_msg.h
View file @
495ecaea
include/spdlog/details/logger_impl.h
View file @
495ecaea
include/spdlog/details/mpmc_bounded_q.h
View file @
495ecaea
include/spdlog/details/os.h
View file @
495ecaea
include/spdlog/details/pattern_formatter_impl.h
View file @
495ecaea
include/spdlog/details/registry.h
View file @
495ecaea
include/spdlog/details/spdlog_impl.h
View file @
495ecaea
include/spdlog/formatter.h
View file @
495ecaea
include/spdlog/logger.h
View file @
495ecaea
include/spdlog/sinks/android_sink.h
View file @
495ecaea
include/spdlog/sinks/ansicolor_sink.h
View file @
495ecaea
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment