Hello,

please upgrade to 2.0.0-incuating version. Its the latest one and the
only one which has been released by Apache. 0.9 was prior Apache days.

> include 'opendb.php';
>

require_once ('log4php/Logger.php');
//only once!
Logger::configure('myconfiguration.properties');

>
> $ID = $_GET['info'];
> $result = mysql_query("SELECT * FROM userTable WHERE IDname='" . $ID . "'");
> $rnum=mysql_num_rows($result);
> echo "alert(\"" . $rnum . "\");";
>

$logger = Logger::getLogger('MyApp');
$logger->info('Hello!');

Let me know if that helped you
Cheers
Christian

> ...some php codes..
>
> ?>
> -------------------------------------
>
>
> i am on Linux using Apache and mysql. the configuration above was supposed
> to
> create a file for the log. however, it cannot create a file. I've been
> searching
> pretty hard on this and tried several config examples but still i could not
> get it to write to a log file..
>
> is there something that i forgot to do?
> please help..
>
>
> and also, Im kind of confused, whats the difference between the:
>
> 1)  apache-log4php-2.0.0-incubating
> 2)  log4php-0.9
>
> log4php installers? and which one should I be using?
> currently, with the config above i am on log4php-0.9..
>
>
>
>
> thanks a lot.
> tinks :(
> --
> View this message in context: 
> http://old.nabble.com/log4php-problem-tp30442440p30442440.html
> Sent from the Log4php - Dev mailing list archive at Nabble.com.
>
>



-- 
http://www.grobmeier.de

Reply via email to