, would
>>>>>>>>>>> supposedly
>>>>>>>>>>> create an unexisting file
>>>>>>>>>>> if "w" is specified in the second param. i tried it and i could
>>>>>>>>>>>
t;>>>>>> to work.. if i dont create a file
>>>>>>>>>> in the path i specified, it could not create the file
>>>>>>>>>> successfully.
>>>>>>>>>>
>>>>>>>
>
>>>>>>>>> Christian grobmeier wrote:
>>>>>>>>>>
>>>>>>>>>> Hello,
>>>>>>>>>>
>>>>>>>>>> http://logging.apache.org/log4php/docs/appenders.html#LoggerAppenderDai
t;>>> http://logging.apache.org/log4php/docs/appenders.html#LoggerAppenderDailyFile
>>>>>>>>> there is some more which needs to be configured:
>>>>>>>>>
>>>>>>>>> log4php.appender.default.datePattern = Ymd
&
gt;>>
>>>>>>>> In your case it should look like:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>&g
>>
>>>>>>> Or similar
>>>>>>>
>>>>>>> However, I just reckognized that the xml documentation is far from
>>>>>>> good. Its no surprise its usage is unclear.
>
egards,
>>>>>> Christian
>>>>>>
>>>>>>
>>>>>> On Tue, Jan 4, 2011 at 3:24 AM, tinkee
>>>>>> wrote:
>>>>>>>
>>>>>>&
t;>>>>> i'm using the log4php for my logging.
>>>>>> specifically the LoggerAppenderDailyFile
>>>>>> but it could not create the logfile successfully.
>>>>>>
>>>>>>
>>>>>> myconfi
gt; log4php:configuration
>>>>> xmlns:log4php="http://logging.apache.org/log4php/";
>>>>> >
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>&g
>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> the php file is this:
>>>> >>>
>>>> require_once (
../log4php/php/Logger.php');
>>> Logger::configure('myconfig.xml');
>>>
>>> //for checking
>>> $temp = "hello there!";
>>> echo $temp;
>>>
>>> $logger = Logger::getLogger('myLogger'); -->what should b
or checking
>> $temp = "hello there!";
>> echo $temp;
>>
>> $logger = Logger::getLogger('myLogger'); -->what should be specified
>> here
>> in getLogger?
>> -->a random
>
bug('Hello!');
>
> ?>
>
>
> did i miss out on somehting?
>
> my php version is php5.1.X
> and im using the log4php 2.0.0-incubating.
>
> does the version has any effect?
>
> thanks a lot.
> --
> View this message in context:
> http://old.nabble.com/log4php-not-working-properly-tp30583406p30583406.html
> Sent from the Log4php - Users mailing list archive at Nabble.com.
>
>
--
http://www.grobmeier.de
ied here
in getLogger?
-->a random value
is assigned here
$logger->debug('Hello!');
?>
did i miss out on somehting?
my php version is php5.1.X
and im using the log4php 2.0.0-incubating.
does the version has any effect?
thanks a lot.
--
View this message in context:
http://old
14 matches
Mail list logo