Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
spdlog
Commits
e933c5f4
Commit
e933c5f4
authored
Nov 11, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed example
parent
2ba4b23b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
26 deletions
+3
-26
example/example.cpp
example/example.cpp
+3
-26
No files found.
example/example.cpp
View file @
e933c5f4
...
@@ -28,32 +28,9 @@ void clone_example();
...
@@ -28,32 +28,9 @@ void clone_example();
int
main
(
int
,
char
*
[])
int
main
(
int
,
char
*
[])
{
{
spdlog
::
info
(
"Welcome to spdlog version {}.{}.{} !"
,
SPDLOG_VER_MAJOR
,
SPDLOG_VER_MINOR
,
SPDLOG_VER_PATCH
);
spdlog
::
set_pattern
(
"[%-8v]"
);
spdlog
::
warn
(
"Easy padding in numbers like {:08d}"
,
12
);
spdlog
::
info
(
"LEFT"
);
spdlog
::
critical
(
"Support for int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}"
,
42
);
spdlog
::
info
(
"123"
);
spdlog
::
info
(
"1234"
);
spdlog
::
info
(
"12345678"
);
spdlog
::
info
(
"123456789"
);
spdlog
::
set_pattern
(
"[%=8v]"
);
spdlog
::
info
(
""
);
spdlog
::
info
(
"CENTER"
);
spdlog
::
info
(
"123"
);
spdlog
::
info
(
"1234"
);
spdlog
::
info
(
"12345678"
);
spdlog
::
info
(
"123456789"
);
spdlog
::
set_pattern
(
"[%8v]"
);
spdlog
::
info
(
""
);
spdlog
::
info
(
"RIGHT"
);
spdlog
::
info
(
"123"
);
spdlog
::
info
(
"1234"
);
spdlog
::
info
(
"12345678"
);
spdlog
::
info
(
"123456789"
);
return
0
;
spdlog
::
info
(
"Support for floats {:03.2f}"
,
1.23456
);
spdlog
::
info
(
"Support for floats {:03.2f}"
,
1.23456
);
spdlog
::
info
(
"Positional args are {1} {0}.."
,
"too"
,
"supported"
);
spdlog
::
info
(
"Positional args are {1} {0}.."
,
"too"
,
"supported"
);
spdlog
::
info
(
"{:>8} aligned, {:>8} aligned"
,
"right"
,
"left"
);
spdlog
::
info
(
"{:>8} aligned, {:>8} aligned"
,
"right"
,
"left"
);
...
...
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