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
|
<!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::LoggingFactory</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 LoggingFactory</h1>
</div>
<div class="body">
<p>
<b>Library:</b> Foundation<br />
<b>Package:</b> Logging<br />
<b>Header:</b> Poco/LoggingFactory.h</p>
<h2>Description</h2>
<div class="description">
<p>An extensible factory for channels and formatters. </p>
<p>The following channel classes are pre-registered: </p>
<ul>
<li><a href="Poco.AsyncChannel.html" title="class Poco::AsyncChannel">AsyncChannel</a> </li>
<li><a href="Poco.ConsoleChannel.html" title="class Poco::ConsoleChannel">ConsoleChannel</a> </li>
<li><a href="Poco.EventLogChannel.html" title="class Poco::EventLogChannel">EventLogChannel</a> (Windows platforms only) </li>
<li><a href="Poco.FileChannel.html" title="class Poco::FileChannel">FileChannel</a> </li>
<li><a href="Poco.FormattingChannel.html" title="class Poco::FormattingChannel">FormattingChannel</a> </li>
<li><a href="Poco.NullChannel.html" title="class Poco::NullChannel">NullChannel</a> </li>
<li><a href="Poco.OpcomChannel.html" title="class Poco::OpcomChannel">OpcomChannel</a> (OpenVMS only) </li>
<li><a href="Poco.SplitterChannel.html" title="class Poco::SplitterChannel">SplitterChannel</a> </li>
<li><a href="Poco.SyslogChannel.html" title="class Poco::SyslogChannel">SyslogChannel</a> (Unix platforms only) </li>
</ul>
<p>The following formatter classes are pre-registered: </p>
<ul>
<li><a href="Poco.PatternFormatter.html" title="class Poco::PatternFormatter">PatternFormatter</a> </li>
</ul>
</div>
<h2>Member Summary</h2>
<p><b>Member Functions: </b><a href="Poco.LoggingFactory.html#8190" title="Poco::LoggingFactory::createChannel()">createChannel</a>, <a href="Poco.LoggingFactory.html#8192" title="Poco::LoggingFactory::createFormatter()">createFormatter</a>, <a href="Poco.LoggingFactory.html#8194" title="Poco::LoggingFactory::defaultFactory()">defaultFactory</a>, <a href="Poco.LoggingFactory.html#8184" title="Poco::LoggingFactory::registerChannelClass()">registerChannelClass</a>, <a href="Poco.LoggingFactory.html#8187" title="Poco::LoggingFactory::registerFormatterClass()">registerFormatterClass</a></p>
<h2>Types</h2>
<h3><a name="8180">ChannelInstantiator</a></h3>
<p class="decl">typedef <a href="Poco.AbstractInstantiator.html" title="class Poco::AbstractInstantiator">AbstractInstantiator</a> < <a href="Poco.Channel.html" title="class Poco::Channel">Channel</a> > <a href="Poco.LoggingFactory.html#8180" title="Poco::LoggingFactory::ChannelInstantiator">ChannelInstantiator</a>;</p>
<div class="description">
<p></p>
</div>
<h3><a name="8181">FormatterFactory</a></h3>
<p class="decl">typedef <a href="Poco.AbstractInstantiator.html" title="class Poco::AbstractInstantiator">AbstractInstantiator</a> < <a href="Poco.Formatter.html" title="class Poco::Formatter">Formatter</a> > <a href="Poco.LoggingFactory.html#8181" title="Poco::LoggingFactory::FormatterFactory">FormatterFactory</a>;</p>
<div class="description">
<p></p>
</div>
<h2>Constructors</h2>
<h3><a name="8182">LoggingFactory</a></h3>
<p class="decl"><a href="Poco.LoggingFactory.html" title="class Poco::LoggingFactory">LoggingFactory</a>();</p>
<div class="description">
<p>Creates the <a href="Poco.LoggingFactory.html" title="class Poco::LoggingFactory">LoggingFactory</a>. </p>
<p>Automatically registers class factories for the built-in channel and formatter classes. </p>
</div>
<h2>Destructor</h2>
<h3><a name="8183">~LoggingFactory</a></h3>
<p class="decl">~<a href="Poco.LoggingFactory.html" title="class Poco::LoggingFactory">LoggingFactory</a>();</p>
<div class="description">
<p>Destroys the <a href="Poco.LoggingFactory.html" title="class Poco::LoggingFactory">LoggingFactory</a>. </p>
</div>
<h2>Member Functions</h2>
<h3><a name="8190">createChannel</a></h3>
<p class="decl"><a href="Poco.Channel.html" title="class Poco::Channel">Channel</a> * createChannel(<br /> const std::string & className<br />) const;</p>
<div class="description">
<p>Creates a new <a href="Poco.Channel.html" title="class Poco::Channel">Channel</a> instance from specified class. </p>
<p>Throws a <a href="Poco.NotFoundException.html" title="class Poco::NotFoundException">NotFoundException</a> if the specified channel class has not been registered. </p>
</div>
<h3><a name="8192">createFormatter</a></h3>
<p class="decl"><a href="Poco.Formatter.html" title="class Poco::Formatter">Formatter</a> * createFormatter(<br /> const std::string & className<br />) const;</p>
<div class="description">
<p>Creates a new <a href="Poco.Formatter.html" title="class Poco::Formatter">Formatter</a> instance from specified class. </p>
<p>Throws a <a href="Poco.NotFoundException.html" title="class Poco::NotFoundException">NotFoundException</a> if the specified formatter class has not been registered. </p>
</div>
<h3><a name="8194">defaultFactory</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static <a href="Poco.LoggingFactory.html" title="class Poco::LoggingFactory">LoggingFactory</a> & defaultFactory();</p>
<div class="description">
<p>Returns a reference to the default <a href="Poco.LoggingFactory.html" title="class Poco::LoggingFactory">LoggingFactory</a>. </p>
</div>
<h3><a name="8184">registerChannelClass</a></h3>
<p class="decl">void registerChannelClass(<br /> const std::string & className,<br /> <a href="Poco.LoggingFactory.html#8180" title="Poco::LoggingFactory::ChannelInstantiator">ChannelInstantiator</a> * pFactory<br />);</p>
<div class="description">
<p>Registers a channel class with the <a href="Poco.LoggingFactory.html" title="class Poco::LoggingFactory">LoggingFactory</a>. </p>
</div>
<h3><a name="8187">registerFormatterClass</a></h3>
<p class="decl">void registerFormatterClass(<br /> const std::string & className,<br /> <a href="Poco.LoggingFactory.html#8181" title="Poco::LoggingFactory::FormatterFactory">FormatterFactory</a> * pFactory<br />);</p>
<div class="description">
<p>Registers a formatter class with the <a href="Poco.LoggingFactory.html" title="class Poco::LoggingFactory">LoggingFactory</a>. </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>
|