Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
f625ad63
Commit
f625ad63
authored
Jun 28, 2012
by
Sebastian Eichelbaum
Browse files
[ADD] - Wlogger now allows removal of log streams.
parent
c4ebcb7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
src/core/common/WLogger.cpp
src/core/common/WLogger.cpp
+5
-0
src/core/common/WLogger.h
src/core/common/WLogger.h
+7
-0
No files found.
src/core/common/WLogger.cpp
View file @
f625ad63
...
...
@@ -118,6 +118,11 @@ void WLogger::addStream( WLogStream::SharedPtr s )
m_outputs
.
push_back
(
s
);
}
void
WLogger
::
removeStream
(
WLogStream
::
SharedPtr
s
)
{
m_outputs
.
remove
(
s
);
}
wlog
::
WStreamedLogger
::
Buffer
::~
Buffer
()
{
WLogger
::
getLogger
()
->
addLogMessage
(
m_logString
.
str
(),
m_source
,
m_level
);
...
...
src/core/common/WLogger.h
View file @
f625ad63
...
...
@@ -74,6 +74,13 @@ public:
*/
void
addStream
(
WLogStream
::
SharedPtr
s
);
/**
* Remove the given stream.
*
* \param s the stream to remove
*/
void
removeStream
(
WLogStream
::
SharedPtr
s
);
/**
* Set the default format used for log entries.
*
...
...
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