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
868c0ced
Commit
868c0ced
authored
Jun 17, 2017
by
Asit Kumar Dhal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README file
parent
a767f07b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
README.md
README.md
+7
-0
No files found.
README.md
View file @
868c0ced
...
@@ -30,6 +30,7 @@ Very fast, header only, C++ logging library. [![Build Status](https://travis-ci.
...
@@ -30,6 +30,7 @@ Very fast, header only, C++ logging library. [![Build Status](https://travis-ci.
*
Feature rich
[
call style
](
#usage-example
)
using the excellent
[
fmt
](
https://github.com/fmtlib/fmt
)
library.
*
Feature rich
[
call style
](
#usage-example
)
using the excellent
[
fmt
](
https://github.com/fmtlib/fmt
)
library.
*
Extremely fast asynchronous mode (optional) - using lockfree queues and other tricks to reach millions of calls/sec.
*
Extremely fast asynchronous mode (optional) - using lockfree queues and other tricks to reach millions of calls/sec.
*
[
Custom
](
https://github.com/gabime/spdlog/wiki/3.-Custom-formatting
)
formatting.
*
[
Custom
](
https://github.com/gabime/spdlog/wiki/3.-Custom-formatting
)
formatting.
*
Conditional Logging
*
Multi/Single threaded loggers.
*
Multi/Single threaded loggers.
*
Various log targets:
*
Various log targets:
*
Rotating log files.
*
Rotating log files.
...
@@ -91,6 +92,12 @@ int main(int, char*[])
...
@@ -91,6 +92,12 @@ int main(int, char*[])
console
->
info
(
"Welcome to spdlog!"
);
console
->
info
(
"Welcome to spdlog!"
);
console
->
error
(
"Some error message with arg{}.."
,
1
);
console
->
error
(
"Some error message with arg{}.."
,
1
);
// Conditional logging example
auto
i
=
2
;
console
->
info_if
(
i
<
20
,
"Welcome to spdlog conditional logging!"
);
console
->
warn_if
(
i
!=
0
,
"an important message"
);
console
->
critical_if
(
i
!=
2
,
"a false warning which won't show up"
);
// Formatting examples
// Formatting examples
console
->
warn
(
"Easy padding in numbers like {:08d}"
,
12
);
console
->
warn
(
"Easy padding in numbers like {:08d}"
,
12
);
console
->
critical
(
"Support for int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}"
,
42
);
console
->
critical
(
"Support for int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}"
,
42
);
...
...
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