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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Class Poco::LogStream</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="author" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="publisher" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="copyright" content="Copyright (c) 2009, Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="language" content="en"/>
<meta name="date" content="2009-11-24"/>
<meta name="generator" content="PocoDoc"/>
<link rel="stylesheet" href="css/styles.css" type="text/css"/>
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0">
<div class="header">
<h1 class="namespace"><a href="Poco.html" class="namespace">Poco</a></h1>
<h1 class="symbol">class LogStream</h1>
</div>
<div class="body">
<p>
<b>Library:</b> Foundation<br />
<b>Package:</b> Logging<br />
<b>Header:</b> Poco/LogStream.h</p>
<h2>Description</h2>
<div class="description">
<p>This class implements an ostream interface to a <a href="Poco.Logger.html" title="class Poco::Logger">Logger</a>. </p>
<p>The stream's buffer appends all characters written to it to a string. As soon as a CR or LF (std::endl) is written, the string is sent to the <a href="Poco.Logger.html" title="class Poco::Logger">Logger</a>, with the current priority. </p>
<p>Usage example: </p>
<pre>LogStream ls(someLogger);
ls << "Some informational message" << std::endl;
ls.error() << "Some error message" << std::endl;
</pre>
</div>
<h2>Inheritance</h2>
<p><b>Direct Base Classes: </b><a href="Poco.LogIOS.html" title="class Poco::LogIOS">LogIOS</a>, std::ostream</p>
<p><b>All Base Classes: </b><a href="Poco.LogIOS.html" title="class Poco::LogIOS">LogIOS</a>, std::ios, std::ostream</p>
<h2>Member Summary</h2>
<p><b>Member Functions: </b><a href="Poco.LogStream.html#8030" title="Poco::LogStream::critical()">critical</a>, <a href="Poco.LogStream.html#8045" title="Poco::LogStream::debug()">debug</a>, <a href="Poco.LogStream.html#8033" title="Poco::LogStream::error()">error</a>, <a href="Poco.LogStream.html#8027" title="Poco::LogStream::fatal()">fatal</a>, <a href="Poco.LogStream.html#8042" title="Poco::LogStream::information()">information</a>, <a href="Poco.LogStream.html#8039" title="Poco::LogStream::notice()">notice</a>, <a href="Poco.LogStream.html#8051" title="Poco::LogStream::priority()">priority</a>, <a href="Poco.LogStream.html#8048" title="Poco::LogStream::trace()">trace</a>, <a href="Poco.LogStream.html#8036" title="Poco::LogStream::warning()">warning</a></p>
<p><b>Inherited Functions: </b><a href="Poco.LogIOS.html#8017" title="Poco::LogIOS::rdbuf()">rdbuf</a></p>
<h2>Constructors</h2>
<h3><a name="8020">LogStream</a></h3>
<p class="decl"><a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a>(<br /> <a href="Poco.Logger.html" title="class Poco::Logger">Logger</a> & logger,<br /> <a href="Poco.Message.html#8424" title="enum Poco::Message::Priority">Message::Priority</a> priority = Message::PRIO_INFORMATION<br />);</p>
<div class="description">
<p>Creates the <a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a>, using the given logger and priority. </p>
</div>
<h3><a name="8023">LogStream</a></h3>
<p class="decl"><a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a>(<br /> const std::string & loggerName,<br /> <a href="Poco.Message.html#8424" title="enum Poco::Message::Priority">Message::Priority</a> priority = Message::PRIO_INFORMATION<br />);</p>
<div class="description">
<p>Creates the <a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a>, using the logger identified by loggerName, and sets the priority. </p>
</div>
<h2>Destructor</h2>
<h3><a name="8026">~LogStream</a></h3>
<p class="decl">~<a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a>();</p>
<div class="description">
<p>Destroys the <a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a>. </p>
</div>
<h2>Member Functions</h2>
<h3><a name="8030">critical</a></h3>
<p class="decl"><a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a> & critical();</p>
<div class="description">
<p>Sets the priority for log messages to <a href="Poco.Message.html#8426" title="Poco::Message::PRIO_CRITICAL">Message::PRIO_CRITICAL</a>. </p>
</div>
<h3><a name="8031">critical</a></h3>
<p class="decl"><a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a> & critical(<br /> const std::string & message<br />);</p>
<div class="description">
<p>Sets the priority for log messages to <a href="Poco.Message.html#8426" title="Poco::Message::PRIO_CRITICAL">Message::PRIO_CRITICAL</a> and writes the given message. </p>
</div>
<h3><a name="8045">debug</a></h3>
<p class="decl"><a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a> & debug();</p>
<div class="description">
<p>Sets the priority for log messages to <a href="Poco.Message.html#8431" title="Poco::Message::PRIO_DEBUG">Message::PRIO_DEBUG</a>. </p>
</div>
<h3><a name="8046">debug</a></h3>
<p class="decl"><a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a> & debug(<br /> const std::string & message<br />);</p>
<div class="description">
<p>Sets the priority for log messages to <a href="Poco.Message.html#8431" title="Poco::Message::PRIO_DEBUG">Message::PRIO_DEBUG</a> and writes the given message. </p>
</div>
<h3><a name="8033">error</a></h3>
<p class="decl"><a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a> & error();</p>
<div class="description">
<p>Sets the priority for log messages to <a href="Poco.Message.html#8427" title="Poco::Message::PRIO_ERROR">Message::PRIO_ERROR</a>. </p>
</div>
<h3><a name="8034">error</a></h3>
<p class="decl"><a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a> & error(<br /> const std::string & message<br />);</p>
<div class="description">
<p>Sets the priority for log messages to <a href="Poco.Message.html#8427" title="Poco::Message::PRIO_ERROR">Message::PRIO_ERROR</a> and writes the given message. </p>
</div>
<h3><a name="8027">fatal</a></h3>
<p class="decl"><a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a> & fatal();</p>
<div class="description">
<p>Sets the priority for log messages to <a href="Poco.Message.html#8425" title="Poco::Message::PRIO_FATAL">Message::PRIO_FATAL</a>. </p>
</div>
<h3><a name="8028">fatal</a></h3>
<p class="decl"><a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a> & fatal(<br /> const std::string & message<br />);</p>
<div class="description">
<p>Sets the priority for log messages to <a href="Poco.Message.html#8425" title="Poco::Message::PRIO_FATAL">Message::PRIO_FATAL</a> and writes the given message. </p>
</div>
<h3><a name="8042">information</a></h3>
<p class="decl"><a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a> & information();</p>
<div class="description">
<p>Sets the priority for log messages to <a href="Poco.Message.html#8430" title="Poco::Message::PRIO_INFORMATION">Message::PRIO_INFORMATION</a>. </p>
</div>
<h3><a name="8043">information</a></h3>
<p class="decl"><a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a> & information(<br /> const std::string & message<br />);</p>
<div class="description">
<p>Sets the priority for log messages to <a href="Poco.Message.html#8430" title="Poco::Message::PRIO_INFORMATION">Message::PRIO_INFORMATION</a> and writes the given message. </p>
</div>
<h3><a name="8039">notice</a></h3>
<p class="decl"><a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a> & notice();</p>
<div class="description">
<p>Sets the priority for log messages to <a href="Poco.Message.html#8429" title="Poco::Message::PRIO_NOTICE">Message::PRIO_NOTICE</a>. </p>
</div>
<h3><a name="8040">notice</a></h3>
<p class="decl"><a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a> & notice(<br /> const std::string & message<br />);</p>
<div class="description">
<p>Sets the priority for log messages to <a href="Poco.Message.html#8429" title="Poco::Message::PRIO_NOTICE">Message::PRIO_NOTICE</a> and writes the given message. </p>
</div>
<h3><a name="8051">priority</a></h3>
<p class="decl"><a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a> & priority(<br /> <a href="Poco.Message.html#8424" title="enum Poco::Message::Priority">Message::Priority</a> priority<br />);</p>
<div class="description">
<p>Sets the priority for log messages. </p>
</div>
<h3><a name="8048">trace</a></h3>
<p class="decl"><a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a> & trace();</p>
<div class="description">
<p>Sets the priority for log messages to <a href="Poco.Message.html#8432" title="Poco::Message::PRIO_TRACE">Message::PRIO_TRACE</a>. </p>
</div>
<h3><a name="8049">trace</a></h3>
<p class="decl"><a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a> & trace(<br /> const std::string & message<br />);</p>
<div class="description">
<p>Sets the priority for log messages to <a href="Poco.Message.html#8432" title="Poco::Message::PRIO_TRACE">Message::PRIO_TRACE</a> and writes the given message. </p>
</div>
<h3><a name="8036">warning</a></h3>
<p class="decl"><a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a> & warning();</p>
<div class="description">
<p>Sets the priority for log messages to <a href="Poco.Message.html#8428" title="Poco::Message::PRIO_WARNING">Message::PRIO_WARNING</a>. </p>
</div>
<h3><a name="8037">warning</a></h3>
<p class="decl"><a href="Poco.LogStream.html" title="class Poco::LogStream">LogStream</a> & warning(<br /> const std::string & message<br />);</p>
<div class="description">
<p>Sets the priority for log messages to <a href="Poco.Message.html#8428" title="Poco::Message::PRIO_WARNING">Message::PRIO_WARNING</a> and writes the given message. </p>
</div>
<p class="footer">POCO C++ Libraries 1.3.6-all<br />
Copyright © 2009, <a href="http://pocoproject.org/" target="_blank">Applied Informatics Software Engineering GmbH and Contributors</a></p>
</div>
</body>
</html>
|