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
82c1b3e7
Commit
82c1b3e7
authored
Jun 29, 2012
by
Alexander Wiebel
Browse files
[MERGE]
parents
f15a36d3
49094ed8
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 @
82c1b3e7
...
...
@@ -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 @
82c1b3e7
...
...
@@ -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