Changeset 147

Show
Ignore:
Timestamp:
01/24/07 19:11:48 (2 years ago)
Author:
mikey
Message:

added possibility to configure the logging

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/util/log/stubFileLogAppender.php

    r146 r147  
    3232    /** 
    3333     * constructor 
     34     * 
     35     * @param  string  $logDir  the directory to write the logfiles into 
     36     */ 
     37    public function __construct($logDir) 
     38    { 
     39        $this->setLogDir($logDir); 
     40    } 
     41     
     42    /** 
     43     * set the logpath 
    3444     *  
    3545     * The log director may have placeholders: {Y} will be replaced with the  
     
    3747     * /path/to/logs/{Y}/{M} would become /path/to/logs/2007/01. 
    3848     * 
    39      * @param  string  $logDir  the directory to write the logfiles into 
     49     * @param  string  $logDir 
    4050     */ 
    41     public function __construct($logDir) 
     51    public function setLogDir($logDir) 
    4252    { 
    4353        $this->logDir = $logDir;