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
6cda714e
Commit
6cda714e
authored
Nov 24, 2014
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed gcc pedantic warnings
parent
4cb6aa90
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
example/example.cpp
example/example.cpp
+1
-1
include/spdlog/async_logger.h
include/spdlog/async_logger.h
+1
-1
include/spdlog/details/async_logger_impl.h
include/spdlog/details/async_logger_impl.h
+4
-4
No files found.
example/example.cpp
View file @
6cda714e
...
...
@@ -29,7 +29,7 @@
#include "spdlog/spdlog.h"
int
main
_
(
int
,
char
*
[])
int
main
(
int
,
char
*
[])
{
namespace
spd
=
spdlog
;
...
...
include/spdlog/async_logger.h
View file @
6cda714e
...
...
@@ -57,8 +57,8 @@ protected:
void
_stop
()
override
;
private:
std
::
unique_ptr
<
sinks
::
async_sink
>
_as
;
log_clock
::
duration
_shutdown_duration
;
std
::
unique_ptr
<
sinks
::
async_sink
>
_as
;
};
}
...
...
include/spdlog/details/async_logger_impl.h
View file @
6cda714e
...
...
@@ -35,15 +35,15 @@
template
<
class
It
>
inline
spdlog
::
async_logger
::
async_logger
(
const
std
::
string
&
name
,
const
It
&
begin
,
const
It
&
end
,
size_t
queue_size
,
const
log_clock
::
duration
&
shutdown_duration
)
:
logger
(
name
,
begin
,
end
),
inline
spdlog
::
async_logger
::
async_logger
(
const
std
::
string
&
logger_
name
,
const
It
&
begin
,
const
It
&
end
,
size_t
queue_size
,
const
log_clock
::
duration
&
shutdown_duration
)
:
logger
(
logger_
name
,
begin
,
end
),
_shutdown_duration
(
shutdown_duration
),
_as
(
std
::
unique_ptr
<
sinks
::
async_sink
>
(
new
sinks
::
async_sink
(
queue_size
)))
{
_as
->
set_formatter
(
_formatter
);
for
(
auto
&
s
:
_sinks
)
_as
->
add_sink
(
s
);
}
;
}
inline
spdlog
::
async_logger
::
async_logger
(
const
std
::
string
&
logger_name
,
sinks_init_list
sinks
,
size_t
queue_size
,
const
log_clock
::
duration
&
shutdown_duration
)
:
async_logger
(
logger_name
,
sinks
.
begin
(),
sinks
.
end
(),
queue_size
,
shutdown_duration
)
{}
...
...
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