Source for file Generic.class.php

Documentation is available at Generic.class.php

  1. <?php
  2. /**
  3.  * Gumbo Library Framework
  4.  *
  5.  * LICENSE
  6.  * This library is being released under the terms of the New BSD License.  A
  7.  * copy of the license is packaged with the software (LICENSE.txt).  If no
  8.  * copy is found, a copy of the license template can be found at:
  9.  * http://www.opensource.org/licenses/bsd-license.php
  10.  * 
  11.  * @category Gumbo
  12.  * @package Log
  13.  * @copyright Copyright (c) 2007, iBayou, Michael Luster
  14.  * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
  15.  * @author Michael Luster <mluster79@yahoo.com>
  16.  * @link http://sourceforge.net/projects/phpgumbo
  17.  * @version 0.0.1
  18.  */
  19.  
  20. /**
  21.  * Generic Log Message Class
  22.  *
  23.  * @category Gumbo
  24.  * @package Log
  25.  * @copyright Copyright (c) 2007, iBayou, Michael Luster
  26.  * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
  27.  * @author Michael Luster <mluster79@yahoo.com>
  28.  * @link http://sourceforge.net/projects/phpgumbo
  29.  * @desc Generic Log Message Class
  30.  * @version 0.0.1
  31.  */
  32.  
  33. gumbo_load ("Log_Message");
  34.  
  35.     
  36.     /**
  37.      * Constructor
  38.      */
  39.     public function __construct ({
  40.         $this->setFile ("gumbo.log");
  41.         
  42.         $this->setSeparator ("|");
  43.         $this->setLineEnd ("\n");
  44.         
  45.         if (func_num_args (0{
  46.             $args func_get_args ();
  47.             call_user_func_array (array ($this"addLine")$args);
  48.         }
  49.     }
  50.     
  51. }
  52.  
  53. ?>