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
52b6be0d
Commit
52b6be0d
authored
Jun 01, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added logger ctor that accepts only name(empty logger)
parent
abd6a678
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
include/spdlog/logger.h
include/spdlog/logger.h
+11
-0
No files found.
include/spdlog/logger.h
View file @
52b6be0d
...
...
@@ -31,19 +31,30 @@ namespace spdlog {
class
logger
{
public:
// Empty logger
logger
(
std
::
string
name
)
:
name_
(
std
::
move
(
name
)),
sinks_
(){}
// Logger with range on sinks
template
<
typename
It
>
logger
(
std
::
string
name
,
It
begin
,
It
end
)
:
name_
(
std
::
move
(
name
))
,
sinks_
(
begin
,
end
)
{}
// Logger with single sink
logger
(
std
::
string
name
,
sink_ptr
single_sink
)
:
logger
(
std
::
move
(
name
),
{
std
::
move
(
single_sink
)})
{}
// Logger with sinks init list
logger
(
std
::
string
name
,
sinks_init_list
sinks
)
:
logger
(
std
::
move
(
name
),
sinks
.
begin
(),
sinks
.
end
())
{}
virtual
~
logger
()
=
default
;
logger
(
const
logger
&
)
=
delete
;
...
...
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