[jira] [Updated] (LOG4PHP-233) Relative path does not work : no file created

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (LOG4PHP-233) Relative path does not work : no file created

JIRA jira@apache.org

     [ 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)