aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/poco/Foundation/src/StreamChannel.cpp
blob: dccf519d68c93eb6b31da854a8b49452cf6a4917 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// 
// StreamChannel.cpp 
// 
// Library: Foundation 
// Package: Logging 
// Module:  StreamChannel 
// 
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. 
// and Contributors. 
// 
// SPDX-License-Identifier:	BSL-1.0 
// 
 
 
#include "Poco/StreamChannel.h" 
#include "Poco/Message.h" 
 
 
namespace Poco { 
 
 
StreamChannel::StreamChannel(std::ostream& str): _str(str) 
{ 
} 
 
 
StreamChannel::~StreamChannel() 
{ 
} 
 
 
void StreamChannel::log(const Message& msg) 
{ 
	FastMutex::ScopedLock lock(_mutex); 
	 
	_str << msg.getText() << std::endl; 
} 
 
 
} // namespace Poco