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
1f3d9390
Commit
1f3d9390
authored
Oct 25, 2017
by
Gabi Melman
Committed by
GitHub
Oct 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #538 from berkus/patch-1
Fix typos. Thanks @berkus
parents
fbb8244f
4974743e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
README.md
README.md
+2
-2
pattern_formatter_impl.h
include/spdlog/details/pattern_formatter_impl.h
+3
-3
spdlog.h
include/spdlog/spdlog.h
+1
-1
No files found.
README.md
View file @
1f3d9390
...
@@ -130,9 +130,9 @@ int main(int, char*[])
...
@@ -130,9 +130,9 @@ int main(int, char*[])
// Runtime log levels
// Runtime log levels
spd
::
set_level
(
spd
::
level
::
info
);
//Set global log level to info
spd
::
set_level
(
spd
::
level
::
info
);
//Set global log level to info
console
->
debug
(
"This message shold not be displayed!"
);
console
->
debug
(
"This message sho
u
ld not be displayed!"
);
console
->
set_level
(
spd
::
level
::
debug
);
// Set specific logger's log level
console
->
set_level
(
spd
::
level
::
debug
);
// Set specific logger's log level
console
->
debug
(
"This message shold be displayed.."
);
console
->
debug
(
"This message sho
u
ld be displayed.."
);
// Compile time log levels
// Compile time log levels
// define SPDLOG_DEBUG_ON or SPDLOG_TRACE_ON
// define SPDLOG_DEBUG_ON or SPDLOG_TRACE_ON
...
...
include/spdlog/details/pattern_formatter_impl.h
View file @
1f3d9390
...
@@ -99,7 +99,7 @@ class A_formatter:public flag_formatter
...
@@ -99,7 +99,7 @@ class A_formatter:public flag_formatter
};
};
//Abbreviated month
//Abbreviated month
static
const
std
::
string
months
[]
{
"Jan"
,
"Feb"
,
"Mar"
,
"Apr"
,
"May"
,
"Jun
e"
,
"July
"
,
"Aug"
,
"Sept"
,
"Oct"
,
"Nov"
,
"Dec"
};
static
const
std
::
string
months
[]
{
"Jan"
,
"Feb"
,
"Mar"
,
"Apr"
,
"May"
,
"Jun
"
,
"Jul
"
,
"Aug"
,
"Sept"
,
"Oct"
,
"Nov"
,
"Dec"
};
class
b_formatter
:
public
flag_formatter
class
b_formatter
:
public
flag_formatter
{
{
void
format
(
details
::
log_msg
&
msg
,
const
std
::
tm
&
tm_time
)
override
void
format
(
details
::
log_msg
&
msg
,
const
std
::
tm
&
tm_time
)
override
...
@@ -119,14 +119,14 @@ class B_formatter:public flag_formatter
...
@@ -119,14 +119,14 @@ class B_formatter:public flag_formatter
};
};
//write 2 ints sep
e
rated by sep with padding of 2
//write 2 ints sep
a
rated by sep with padding of 2
static
fmt
::
MemoryWriter
&
pad_n_join
(
fmt
::
MemoryWriter
&
w
,
int
v1
,
int
v2
,
char
sep
)
static
fmt
::
MemoryWriter
&
pad_n_join
(
fmt
::
MemoryWriter
&
w
,
int
v1
,
int
v2
,
char
sep
)
{
{
w
<<
fmt
::
pad
(
v1
,
2
,
'0'
)
<<
sep
<<
fmt
::
pad
(
v2
,
2
,
'0'
);
w
<<
fmt
::
pad
(
v1
,
2
,
'0'
)
<<
sep
<<
fmt
::
pad
(
v2
,
2
,
'0'
);
return
w
;
return
w
;
}
}
//write 3 ints sep
e
rated by sep with padding of 2
//write 3 ints sep
a
rated by sep with padding of 2
static
fmt
::
MemoryWriter
&
pad_n_join
(
fmt
::
MemoryWriter
&
w
,
int
v1
,
int
v2
,
int
v3
,
char
sep
)
static
fmt
::
MemoryWriter
&
pad_n_join
(
fmt
::
MemoryWriter
&
w
,
int
v1
,
int
v2
,
int
v3
,
char
sep
)
{
{
w
<<
fmt
::
pad
(
v1
,
2
,
'0'
)
<<
sep
<<
fmt
::
pad
(
v2
,
2
,
'0'
)
<<
sep
<<
fmt
::
pad
(
v3
,
2
,
'0'
);
w
<<
fmt
::
pad
(
v1
,
2
,
'0'
)
<<
sep
<<
fmt
::
pad
(
v2
,
2
,
'0'
)
<<
sep
<<
fmt
::
pad
(
v3
,
2
,
'0'
);
...
...
include/spdlog/spdlog.h
View file @
1f3d9390
...
@@ -154,7 +154,7 @@ void drop_all();
...
@@ -154,7 +154,7 @@ void drop_all();
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
//
//
// Trace & Debug can be switched on/off at compile time for zero cost debug statements.
// Trace & Debug can be switched on/off at compile time for zero cost debug statements.
// Uncomment SPDLOG_DEBUG_ON/SPDLOG_TRACE_ON in teakme.h to enable.
// Uncomment SPDLOG_DEBUG_ON/SPDLOG_TRACE_ON in t
w
eakme.h to enable.
// SPDLOG_TRACE(..) will also print current file and line.
// SPDLOG_TRACE(..) will also print current file and line.
//
//
// Example:
// Example:
...
...
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