Hi

Thanks for the help however i am still having issues.

/etc/default/logback-include.xml as described but with a with a file 
appender in it does not create the file, that implies this isn't being read

/etc/go/logback.xml 

does create the file but nothing is put into the file.
"
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <appender name="FILEic" 
class="ch.qos.logback.core.rolling.RollingFileAppender">
    <file>/var/log/go-server/lbinclude.log</file>
    <rollingPolicy 
class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
      <fileNamePattern>lbinclude.%d{yyyy-MM-dd}.log.zip</fileNamePattern>
    </rollingPolicy>
    <maxHistory>7</maxHistory>
    <totalSizeCap>1GB</totalSizeCap>
    <append>true</append>
  </appender>

  <logger name="org.eclipse.jetty.server.RequestLog" level="INFO">
    <appender-ref ref="FILEic" />
  </logger>
</configuration>
"
On Wednesday, 20 December 2017 11:52:20 UTC, Ketan Padegaonkar wrote:
>
> The logs do not mention any logback-access.xml anywhere. To get access 
> logs —
>
> * create a file called `/etc/default/logback-include.xml`, with the 
> following contents
>
> <?xml version="1.0" encoding="UTF-8"?>
> <included>
>   <logger name="org.eclipse.jetty.server.RequestLog" level="INFO" />
> </included>
>
>
> On Wed, Dec 20, 2017 at 4:51 PM 'Barry Greenwood' via go-cd <
> go...@googlegroups.com <javascript:>> wrote:
>
>> Hi Varsha 
>>
>> I've tried in the  logback.xml
>>
>> <appender name="FILEac" 
>> class="ch.qos.logback.core.rolling.RollingFileAppender">
>>     <file>/var/log/go-server/lbaccess.log</file>
>>     <rollingPolicy 
>> class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
>>       <fileNamePattern>lbaccess.%d{yyyy-MM-dd}.log.zip</fileNamePattern>
>>     </rollingPolicy>
>>     <maxHistory>7</maxHistory>
>>     <totalSizeCap>1GB</totalSizeCap>
>>     <append>true</append>
>>     <encoder>
>>       <pattern>combined</pattern>
>>     </encoder>
>>   </appender>
>>
>>   <logger name="org.eclipse.jetty.server.RequestLog" level="INFO">
>>     <appender-ref ref="FILEac" />
>>   </logger>
>>
>> and that generates the file but no logs appear.
>>
>> The docs imply i need to use a logback-access.xml but i cant get that to 
>> import.
>>
>> Thanks
>>
>> Barry
>>
>>
>> On Wednesday, 20 December 2017 05:31:40 UTC, Varsha Varadarajan wrote:
>>>
>>> @Barry - Are you looking for request logs? This can be setup using 
>>> org.eclipse.jetty.server.RequestLog. Checkout the docs that Ketan pointed 
>>> to - https://docs.gocd.org/current/advanced_usage/logging.html
>>>
>>>
>>>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "go-cd" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to go-cd+un...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to go-cd+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to