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
0d97696f
Commit
0d97696f
authored
Mar 30, 2016
by
Gabi Melman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
bcc1918d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
README.md
README.md
+6
-6
No files found.
README.md
View file @
0d97696f
...
...
@@ -134,12 +134,12 @@ int main(int, char* [])
syslog_logger
->
warn
(
"This is warning that will end up in syslog. This is Linux only!"
);
#endif
//co
nsole color
example
auto
console_out
=
spdlog
::
sinks
::
stderr_sink_st
::
instance
();
auto
color_sink
=
std
::
make_shared
<
spd
::
sinks
::
ansicolor_sink
>
(
console_out
);
// wraps around another sink
auto
color_logger
=
spd
::
details
::
registry
::
instance
().
create
(
"Color"
,
color_sink
);
color_sink
->
set_color
(
spd
::
level
::
info
,
color_sink
->
bold
+
color_sink
->
green
);
color_logger
->
info
(
"Testing color logger..."
);
//co
lored console sink
example
auto
console_out
=
spdlog
::
sinks
::
stderr_sink_st
::
instance
();
auto
color_sink
=
std
::
make_shared
<
spd
::
sinks
::
ansicolor_sink
>
(
console_out
);
// wraps around another sink
auto
color_logger
=
spd
::
details
::
registry
::
instance
().
create
(
"Color"
,
color_sink
);
color_sink
->
set_color
(
spd
::
level
::
info
,
color_sink
->
bold
+
color_sink
->
green
);
color_logger
->
info
(
"Testing color logger..."
);
}
catch
(
const
spd
::
spdlog_ex
&
ex
)
{
...
...
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