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
12800ac4
Commit
12800ac4
authored
Sep 30, 2016
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed shadow warnings in gcc
parent
faa184ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
include/spdlog/details/async_logger_impl.h
include/spdlog/details/async_logger_impl.h
+2
-2
include/spdlog/sinks/ansicolor_sink.h
include/spdlog/sinks/ansicolor_sink.h
+3
-3
No files found.
include/spdlog/details/async_logger_impl.h
View file @
12800ac4
...
@@ -31,13 +31,13 @@ inline spdlog::async_logger::async_logger(const std::string& logger_name,
...
@@ -31,13 +31,13 @@ inline spdlog::async_logger::async_logger(const std::string& logger_name,
}
}
inline
spdlog
::
async_logger
::
async_logger
(
const
std
::
string
&
logger_name
,
inline
spdlog
::
async_logger
::
async_logger
(
const
std
::
string
&
logger_name
,
sinks_init_list
sinks
,
sinks_init_list
sinks
_list
,
size_t
queue_size
,
size_t
queue_size
,
const
async_overflow_policy
overflow_policy
,
const
async_overflow_policy
overflow_policy
,
const
std
::
function
<
void
()
>&
worker_warmup_cb
,
const
std
::
function
<
void
()
>&
worker_warmup_cb
,
const
std
::
chrono
::
milliseconds
&
flush_interval_ms
,
const
std
::
chrono
::
milliseconds
&
flush_interval_ms
,
const
std
::
function
<
void
()
>&
worker_teardown_cb
)
:
const
std
::
function
<
void
()
>&
worker_teardown_cb
)
:
async_logger
(
logger_name
,
sinks
.
begin
(),
sinks
.
end
(),
queue_size
,
overflow_policy
,
worker_warmup_cb
,
flush_interval_ms
,
worker_teardown_cb
)
{}
async_logger
(
logger_name
,
sinks
_list
.
begin
(),
sinks_list
.
end
(),
queue_size
,
overflow_policy
,
worker_warmup_cb
,
flush_interval_ms
,
worker_teardown_cb
)
{}
inline
spdlog
::
async_logger
::
async_logger
(
const
std
::
string
&
logger_name
,
inline
spdlog
::
async_logger
::
async_logger
(
const
std
::
string
&
logger_name
,
sink_ptr
single_sink
,
sink_ptr
single_sink
,
...
...
include/spdlog/sinks/ansicolor_sink.h
View file @
12800ac4
...
@@ -33,7 +33,7 @@ public:
...
@@ -33,7 +33,7 @@ public:
virtual
void
log
(
const
details
::
log_msg
&
msg
)
override
;
virtual
void
log
(
const
details
::
log_msg
&
msg
)
override
;
virtual
void
flush
()
override
;
virtual
void
flush
()
override
;
void
set_color
(
level
::
level_enum
level
,
const
std
::
string
&
color
);
void
set_color
(
level
::
level_enum
color_
level
,
const
std
::
string
&
color
);
/// Formatting codes
/// Formatting codes
const
std
::
string
reset
=
"
\033
[00m"
;
const
std
::
string
reset
=
"
\033
[00m"
;
...
@@ -101,9 +101,9 @@ inline void ansicolor_sink::flush()
...
@@ -101,9 +101,9 @@ inline void ansicolor_sink::flush()
sink_
->
flush
();
sink_
->
flush
();
}
}
inline
void
ansicolor_sink
::
set_color
(
level
::
level_enum
level
,
const
std
::
string
&
color
)
inline
void
ansicolor_sink
::
set_color
(
level
::
level_enum
color_
level
,
const
std
::
string
&
color
)
{
{
colors_
[
level
]
=
color
;
colors_
[
color_
level
]
=
color
;
}
}
inline
ansicolor_sink
::~
ansicolor_sink
()
inline
ansicolor_sink
::~
ansicolor_sink
()
...
...
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