Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
75a12c69
Commit
75a12c69
authored
Aug 08, 2014
by
Tomek Mrugalski
🛰
Browse files
[3427] Logging configuration now properly processes more than one logger
parent
23cff9eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcpsrv/logging.cc
View file @
75a12c69
...
...
@@ -156,6 +156,8 @@ void LogConfigParser::applyConfiguration() {
// Set locking directory to /tmp
setenv
(
"B10_LOCKFILE_DIR_FROM_BUILD"
,
"/tmp"
,
1
);
std
::
vector
<
LoggerSpecification
>
specs
;
// Now iterate through all specified loggers
for
(
LoggingInfoStorage
::
const_iterator
it
=
config_
->
logging_info_
.
begin
();
it
!=
config_
->
logging_info_
.
end
();
++
it
)
{
...
...
@@ -206,9 +208,11 @@ void LogConfigParser::applyConfiguration() {
spec
.
addOutputOption
(
option
);
}
LoggerManager
manager
;
manager
.
process
(
spec
);
specs
.
push_back
(
spec
);
}
LoggerManager
manager
;
manager
.
process
(
specs
.
begin
(),
specs
.
end
());
}
void
LogConfigParser
::
applyDefaultConfiguration
(
bool
verbose
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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