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
4f98b000
Commit
4f98b000
authored
Aug 25, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed example
parent
b5d61b96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
example.cpp
example/example.cpp
+2
-2
No files found.
example/example.cpp
View file @
4f98b000
...
@@ -35,6 +35,7 @@ int main(int, char *[])
...
@@ -35,6 +35,7 @@ int main(int, char *[])
spdlog
::
debug
(
"This message should not be displayed!"
);
spdlog
::
debug
(
"This message should not be displayed!"
);
spdlog
::
set_level
(
spdlog
::
level
::
trace
);
// Set specific logger's log level
spdlog
::
set_level
(
spdlog
::
level
::
trace
);
// Set specific logger's log level
spdlog
::
debug
(
"This message should be displayed.."
);
spdlog
::
debug
(
"This message should be displayed.."
);
spdlog
::
set_level
(
spdlog
::
level
::
info
);
// Set specific logger's log level
// Customize msg format for all loggers
// Customize msg format for all loggers
spdlog
::
set_pattern
(
"[%H:%M:%S %z] [%^%L%$] [thread %t] %v"
);
spdlog
::
set_pattern
(
"[%H:%M:%S %z] [%^%L%$] [thread %t] %v"
);
...
@@ -46,8 +47,7 @@ int main(int, char *[])
...
@@ -46,8 +47,7 @@ int main(int, char *[])
spdlog
::
enable_backtrace
(
16
);
spdlog
::
enable_backtrace
(
16
);
spdlog
::
trace
(
"Backtrace message 1"
);
spdlog
::
trace
(
"Backtrace message 1"
);
spdlog
::
debug
(
"Backtrace message 2"
);
spdlog
::
debug
(
"Backtrace message 2"
);
spdlog
::
debug
(
"Backtrace message 3"
);
spdlog
::
dump_backtrace
();
spdlog
::
error
(
"This should trigger backtrace!"
);
try
try
{
{
...
...
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