just additional info, i wanted to have something like this:
2011-01-10.log
2011-01-10.log.1
2011-01-10.log.2
2011-01-11.log
2011-01-11.log.1
dailyAppenderFile and RollingFile in one, is it possible to use 2 appenders
in one logfile?
thanks a lot..
tinkee wrote:
>
> Hi,
>
.u}
>
> Note that "m" will be replaced by the month, and it's used twice
> mistakenly. The correct format should use "i" for minutes:
> %d{Y-m-d H:i:s.u}
>
> Still, this should not produce the provided output (month and minutes
> are not the same).
&g
"i" for minutes:
> %d{Y-m-d H:i:s.u}
>
> Still, this should not produce the provided output (month and minutes
> are not the same).
>
> So, tinkee, can you please:
> 1) Tell us which version of log4php you are using
> 2) Attach the configuration file and code w
Hi,
is it possible to use multiple LoggerAppenders?
I wanted my logs to be generated fresh everyday but be saved everytime the
specified capacity is
reached, thus would be using the RollingFile..
would this be possible? i could not seem to find examples over the web..
thanks a whole lot,
tink
hi!
I have a question regarding the LoggerLayoutPattern..
In my xml file i have the:
layout
class - LoggerLayoutPattern
param
name - conversionPattern
value - %d{Y-m-d H:m:s.u}|%p|%m| FILE: %F LINE: %L%n
however i think the Hour part of the timestamp is not consistent..
this i
eier wrote:
>
> in this case i doubt it is a logging error. Can you try to create a
> single script with only fopen("test.txt","w"); to see if fopen can
> create a file in the same folder as the script?
>
> On Tue, Jan 4, 2011 at 9:39 AM, tinkee wrote:
>>
>
i tried to hardcode the path in fopen("/var/www/html/logs/20110104.log",
'w');
but still cannot create though..
tinkee wrote:
>
>
>
> iam on php 5.1.6...
>
> i also noticed that in the echo result in line 69 of AppenderFile, the one
> you told
..
you think something went wrong?
thanks a lot for all the ideas. big help. :)
Christian grobmeier wrote:
>
> actually i am lack of ideas now... what php version are u using exaclty?
>
> On Tue, Jan 4, 2011 at 9:15 AM, tinkee wrote:
>>
>>
>> a
and also i am operating as root...
tinkee wrote:
>
>
> i set the whole /var/www/html/ to 777 using the terminal..:(
> i think after creating the file, it does not set it to 755?
> i tried to insert
>
> chmod($filename, 0755);
>
> after fopen(), in AppenderFi
t;
>>> In windows world you probably need C:\ or something before the path
>>> begins
>>>
>>> My feeling says, its something related to that - either the filename
>>> param comes to the appender or the path is not correct (because its
>>> used d
My feeling says, its something related to that - either the filename
> param comes to the appender or the path is not correct (because its
> used different from php maybe)
>
> Cheers
>
> On Tue, Jan 4, 2011 at 8:28 AM, tinkee wrote:
>>
>>
>>
>> Hi!
>
g
>
> In your case it should look like:
>
>
>
>
>
>
>
> Or similar
>
> However, I just reckognized that the xml documentation is far from
> good. Its no surprise its usage is unclear.
>
> Best regards,
> Christian
>
>
> On
hi,
i'm using the log4php for my logging.
specifically the LoggerAppenderDailyFile
but it could not create the logfile successfully.
myconfig.xml -->resides in the same level with my php file
log4php:configuration xmlns:log4ph
13 matches
Mail list logo