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
ddb3002b
Commit
ddb3002b
authored
Jul 20, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added non const sinks() function to support addition/removal of sinks from existing logger
parent
63db70aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
include/spdlog/details/logger_impl.h
include/spdlog/details/logger_impl.h
+5
-0
include/spdlog/logger.h
include/spdlog/logger.h
+2
-0
No files found.
include/spdlog/details/logger_impl.h
View file @
ddb3002b
...
@@ -338,3 +338,8 @@ inline const std::vector<spdlog::sink_ptr> &spdlog::logger::sinks() const
...
@@ -338,3 +338,8 @@ inline const std::vector<spdlog::sink_ptr> &spdlog::logger::sinks() const
{
{
return
sinks_
;
return
sinks_
;
}
}
inline
std
::
vector
<
spdlog
::
sink_ptr
>
&
spdlog
::
logger
::
sinks
()
{
return
sinks_
;
}
include/spdlog/logger.h
View file @
ddb3002b
...
@@ -126,6 +126,8 @@ public:
...
@@ -126,6 +126,8 @@ public:
const
std
::
vector
<
sink_ptr
>
&
sinks
()
const
;
const
std
::
vector
<
sink_ptr
>
&
sinks
()
const
;
std
::
vector
<
sink_ptr
>
&
sinks
()
;
// error handler
// error handler
void
set_error_handler
(
log_err_handler
err_handler
);
void
set_error_handler
(
log_err_handler
err_handler
);
log_err_handler
error_handler
();
log_err_handler
error_handler
();
...
...
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