logging-log4php-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Max UNGER (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LOG4PHP-233) Relative path does not work : no file created
Date Mon, 20 Mar 2017 10:24:41 GMT

     [ https://issues.apache.org/jira/browse/LOG4PHP-233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Max UNGER updated LOG4PHP-233:
------------------------------
    Description: 
If i set an absolute path in my config.xml file, the file is correctly created, trying with
a relative path, the log file never gets created... I tried ./myfile.log or directly myfile.log.
None works, although the final path location is the same as the absolute path given, si directory
permission is not involved.
Appender used it LoggerAppenderDailyFile with following configuration:

<appender name="default" class="LoggerAppenderDailyFile">        
        <layout class="LoggerLayoutPattern">
            <param name="conversionPattern" value="%date{Y-m-d H:i:s,u} %logger %-5level
%F{10}:%L %msg%n" />
        </layout>
        <param name="file" value="logs/gfcr-%s.log" />
        <param name="datePattern" value="Y-m-d" />
    </appender>

Can you please help ?

  was:
If i set an absolute path in my config.xml file, the file is correctly created, trying with
a relative path, the log file never gets created... I tried ./myfile.log or directly myfile.log.
None works, although the final path location is the same as the absolute path given, si directory
permission is not involved.
Can you please help ?


> Relative path does not work : no file created
> ---------------------------------------------
>
>                 Key: LOG4PHP-233
>                 URL: https://issues.apache.org/jira/browse/LOG4PHP-233
>             Project: Log4php
>          Issue Type: Bug
>    Affects Versions: 2.3.0
>         Environment: ubuntu LTS 16
>            Reporter: Max UNGER
>
> If i set an absolute path in my config.xml file, the file is correctly created, trying
with a relative path, the log file never gets created... I tried ./myfile.log or directly
myfile.log.
> None works, although the final path location is the same as the absolute path given,
si directory permission is not involved.
> Appender used it LoggerAppenderDailyFile with following configuration:
> <appender name="default" class="LoggerAppenderDailyFile">        
>         <layout class="LoggerLayoutPattern">
>             <param name="conversionPattern" value="%date{Y-m-d H:i:s,u} %logger %-5level
%F{10}:%L %msg%n" />
>         </layout>
>         <param name="file" value="logs/gfcr-%s.log" />
>         <param name="datePattern" value="Y-m-d" />
>     </appender>
> Can you please help ?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message