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
9d7c1052
Commit
9d7c1052
authored
Dec 22, 2014
by
Gabi Melman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
0221466d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
README.md
README.md
+8
-8
No files found.
README.md
View file @
9d7c1052
...
...
@@ -82,8 +82,8 @@ int main(int, char* [])
console
->
info
(
"{:<30}"
,
"left aligned"
);
console
->
info
(
"{:>30}"
,
"right aligned"
);
console
->
info
(
"{:^30}"
,
"centered"
);
//
//
// Runtime log levels
//
spd
::
set_level
(
spd
::
level
::
info
);
//Set global log level to info
...
...
@@ -91,14 +91,14 @@ int main(int, char* [])
console
->
set_level
(
spd
::
level
::
info
);
// Set specific logger's log level
console
->
info
(
"Now it should.."
);
//
//
// Create a file rotating logger with 5mb size max and 3 rotated files
//
auto
file_logger
=
spd
::
rotating_logger_mt
(
"file_logger"
,
"logs/mylogfile"
,
1048576
*
5
,
3
);
for
(
int
i
=
0
;
i
<
10
;
++
i
)
file_logger
->
info
(
"{} * {} equals {:>10}"
,
i
,
i
,
i
*
i
);
//
//
// Customize msg format for all messages
//
spd
::
set_pattern
(
"*** [%H:%M:%S %z] [thread %t] %v ***"
);
...
...
@@ -106,10 +106,10 @@ int main(int, char* [])
spd
::
get
(
"console"
)
->
info
(
"loggers can be retrieved from a global registry using the spdlog::get(logger_name) function"
);
//
// Compile time debug or trace macros.
// Enabled #ifdef SPDLOG_DEBUG_ON or #ifdef SPDLOG_TRACE_ON
//
//
// Compile time debug or trace macros.
// Enabled #ifdef SPDLOG_DEBUG_ON or #ifdef SPDLOG_TRACE_ON
//
SPDLOG_TRACE
(
console
,
"Enabled only #ifdef SPDLOG_TRACE_ON..{} ,{}"
,
1
,
3.23
);
SPDLOG_DEBUG
(
console
,
"Enabled only #ifdef SPDLOG_DEBUG_ON.. {} ,{}"
,
1
,
3.23
);
...
...
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