Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

log.cc

00001 /*
00002 *  Name:      log.cc
00003 *  Author:    Rafael Jesus Alcantara Perez
00004 *  Summary:   Base operating system
00005 *  Date:      $Date: 2003/04/14 00:18:35 $
00006 *  Revision:  $Revision: 1.1 $
00007 *
00008 *  Copyright (C) 2000-2002  Rafael Jesus Alcantara Perez <rafa@dedalo-ing.com>
00009 *
00010 *  This program is free software; you can redistribute it and/or modify
00011 *  it under the terms of the GNU General Public License as published by
00012 *  the Free Software Foundation; either version 2 of the License, or
00013 *  (at your option) any later version.
00014 *
00015 *  This program is distributed in the hope that it will be useful,
00016 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018 *  GNU General Public License for more details.
00019 *
00020 *  You should have received a copy of the GNU General Public License
00021 *  along with this program; if not, write to the Free Software
00022 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00023 *  MA 02111-1307, USA.
00024 */
00025 
00026 #include <algorithm>
00027 #include <cctype>
00028 #include <mpcl/util/general-functions.hh>
00029 #include <mpcl/util/logging/log.hh>
00030 
00031 
00032 //
00033 //  E X P O R T E D   F U N C T I O N S
00034 //
00035 
00036 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00037 emerg (TBaseLog& rtBASE_LOG)
00038 {
00039 
00040   rtBASE_LOG.setLevel (system::ISystem::eEmerg);
00041   return rtBASE_LOG;
00042 
00043 }  // emerg()
00044 
00045 
00046 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00047 alert (TBaseLog& rtBASE_LOG)
00048 {
00049 
00050   rtBASE_LOG.setLevel (system::ISystem::eAlert);
00051   return rtBASE_LOG;
00052 
00053 }  // alert()
00054 
00055 
00056 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00057 crit (TBaseLog& rtBASE_LOG)
00058 {
00059 
00060   rtBASE_LOG.setLevel (system::ISystem::eCrit);
00061   return rtBASE_LOG;
00062 
00063 }  // crit()
00064 
00065 
00066 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00067 err (TBaseLog& rtBASE_LOG)
00068 {
00069 
00070   rtBASE_LOG.setLevel (system::ISystem::eErr);
00071   return rtBASE_LOG;
00072 
00073 }  // err()
00074 
00075 
00076 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00077 warning (TBaseLog& rtBASE_LOG)
00078 {
00079 
00080   rtBASE_LOG.setLevel (system::ISystem::eWarning);
00081   return rtBASE_LOG;
00082 
00083 }  // warning()
00084 
00085 
00086 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00087 notice (TBaseLog& rtBASE_LOG)
00088 {
00089 
00090   rtBASE_LOG.setLevel (system::ISystem::eNotice);
00091   return rtBASE_LOG;
00092 
00093 }  // notice()
00094 
00095 
00096 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00097 info (TBaseLog& rtBASE_LOG)
00098 {
00099 
00100   rtBASE_LOG.setLevel (system::ISystem::eInfo);
00101   return rtBASE_LOG;
00102 
00103 }  // info()
00104 
00105 
00106 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00107 debug (TBaseLog& rtBASE_LOG)
00108 {
00109 
00110   rtBASE_LOG.setLevel (system::ISystem::eDebug);
00111   return rtBASE_LOG;
00112 
00113 }  // debug()
00114 
00115 
00116 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00117 authpriv (TBaseLog& rtBASE_LOG)
00118 {
00119 
00120   rtBASE_LOG.setFacility (system::ISystem::eAuthPriv);
00121   return rtBASE_LOG;
00122 
00123 }  // authpriv()
00124 
00125 
00126 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00127 cron (TBaseLog& rtBASE_LOG)
00128 {
00129 
00130   rtBASE_LOG.setFacility (system::ISystem::eCron);
00131   return rtBASE_LOG;
00132 
00133 }  // cron()
00134 
00135 
00136 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00137 daemon (TBaseLog& rtBASE_LOG)
00138 {
00139 
00140   rtBASE_LOG.setFacility (system::ISystem::eDaemon);
00141   return rtBASE_LOG;
00142 
00143 }  // daemon()
00144 
00145 
00146 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00147 kern (TBaseLog& rtBASE_LOG)
00148 {
00149 
00150   rtBASE_LOG.setFacility (system::ISystem::eKern);
00151   return rtBASE_LOG;
00152 
00153 }  // kern()
00154 
00155 
00156 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00157 local0 (TBaseLog& rtBASE_LOG)
00158 {
00159 
00160   rtBASE_LOG.setFacility (system::ISystem::eLocal0);
00161   return rtBASE_LOG;
00162 
00163 }  // local0()
00164 
00165 
00166 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00167 local1 (TBaseLog& rtBASE_LOG)
00168 {
00169 
00170   rtBASE_LOG.setFacility (system::ISystem::eLocal1);
00171   return rtBASE_LOG;
00172 
00173 }  // local1()
00174 
00175 
00176 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00177 local2 (TBaseLog& rtBASE_LOG)
00178 {
00179 
00180   rtBASE_LOG.setFacility (system::ISystem::eLocal2);
00181   return rtBASE_LOG;
00182 
00183 }  // local2()
00184 
00185 
00186 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00187 local3 (TBaseLog& rtBASE_LOG)
00188 {
00189 
00190   rtBASE_LOG.setFacility (system::ISystem::eLocal3);
00191   return rtBASE_LOG;
00192 
00193 }  // local3()
00194 
00195 
00196 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00197 local4 (TBaseLog& rtBASE_LOG)
00198 {
00199 
00200   rtBASE_LOG.setFacility (system::ISystem::eLocal4);
00201   return rtBASE_LOG;
00202 
00203 }  // local4()
00204 
00205 
00206 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00207 local5 (TBaseLog& rtBASE_LOG)
00208 {
00209 
00210   rtBASE_LOG.setFacility (system::ISystem::eLocal5);
00211   return rtBASE_LOG;
00212 
00213 }  // local5()
00214 
00215 
00216 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00217 local6 (TBaseLog& rtBASE_LOG)
00218 {
00219 
00220   rtBASE_LOG.setFacility (system::ISystem::eLocal6);
00221   return rtBASE_LOG;
00222 
00223 }  // local6()
00224 
00225 
00226 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00227 local7 (TBaseLog& rtBASE_LOG)
00228 {
00229 
00230   rtBASE_LOG.setFacility (system::ISystem::eLocal7);
00231   return rtBASE_LOG;
00232 
00233 }  // local7()
00234 
00235 
00236 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00237 lpr (TBaseLog& rtBASE_LOG)
00238 {
00239 
00240   rtBASE_LOG.setFacility (system::ISystem::eLpr);
00241   return rtBASE_LOG;
00242 
00243 }  // lpr()
00244 
00245 
00246 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00247 mail (TBaseLog& rtBASE_LOG)
00248 {
00249 
00250   rtBASE_LOG.setFacility (system::ISystem::eMail);
00251   return rtBASE_LOG;
00252 
00253 }  // mail()
00254 
00255 
00256 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00257 news (TBaseLog& rtBASE_LOG)
00258 {
00259 
00260   rtBASE_LOG.setFacility (system::ISystem::eNews);
00261   return rtBASE_LOG;
00262 
00263 }  // news()
00264 
00265 
00266 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00267 user (TBaseLog& rtBASE_LOG)
00268 {
00269 
00270   rtBASE_LOG.setFacility (system::ISystem::eUser);
00271   return rtBASE_LOG;
00272 
00273 }  // user()
00274 
00275 
00276 mpcl::util::logging::TBaseLog& mpcl::util::logging::
00277 uucp (TBaseLog& rtBASE_LOG)
00278 {
00279 
00280   rtBASE_LOG.setFacility (system::ISystem::eUucp);
00281   return rtBASE_LOG;
00282 
00283 }  // uucp()
00284 
00285 
00287 namespace mpcl
00288 {
00289 
00291   namespace util
00292   {
00293 
00295     namespace logging
00296     {
00297 
00298       //
00299       //  E X P O R T E D   V A R I A B L E S
00300       //
00301 
00302       TLog<char>   tLog;
00303 
00304     }  // namespace logging
00305 
00306   }  // namespace util
00307 
00308 }  // namespace mpcl

Generated on Mon Oct 13 02:35:23 2003 for MPCL by doxygen1.2.18