#1 2017-11-10 07:17:27

GauravKumar
Member
Registered: 2017-05-26

Enable File logging for Logs

Hi Team,

How can we enable file-logging for logs viewing purpose.

Do we need to configure the logback-rs.xml


----------------------------------------------------------------------------------------------
<configuration>
    <contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
        <resetJUL>true</resetJUL>
    </contextListener>

    <appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
        <encoder>
            <pattern>%d{HH:mm:ss.SSS} %-5level %logger{36} - %msg%n</pattern>
        </encoder>
    </appender>


    <logger name="com.businessobjects" level="inherited" />
    <logger name="com.crystaldecisions" level="inherited" />
    <logger name="com.crystaldecisions12" level="inherited" />

    <logger name="org.eclipse.birt" level="inherited" />

    <logger name="org.hibernate" level="inherited" />
    <logger name="org.hibernate.jpa.internal.metamodel.MetadataContext" level="off" />

    <logger name="net.datenwerke" level="info" />
   
    <root level="error">
        <appender-ref ref="stdout" />
    </root>
</configuration>

Offline

#2 2017-12-06 16:38:26

jalbrecht
Administrator
Registered: 2016-10-21

Re: Enable File logging for Logs

Hi Gaurav,

i assume you are talking about reportserver log. There is many ways to do that, a simple one is to just create a dynamic list containing the interesting Logging entries (->error, ...) and send it via scheduler to whomever might be interested in the report. Adjust amount entries via JUEL expressions for the time window you want to look at (-> today, the last hour, ...) and adjust the Scheduling frequency to suit your needs.

wbr jan

Offline

#3 2017-12-07 14:12:20

GauravKumar
Member
Registered: 2017-05-26

Re: Enable File logging for Logs

Hi Jan,

My requirement is different. Want to know how to create log files for ReportServer application as it happens for any applications.
In the database in RS_AUDITLOG_ENTRY & RS_AUDITLOG_PROPERTY only minimum information is populated in case of error.
Couldn't figure out the root cause.
I hope you understand my concern.

Offline

#4 2017-12-08 07:44:13

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Enable File logging for Logs

Hi GauravKumar,

reportserver is already creating log files. These are located in the tomcat logs directory. Here you have more information on setting logging in reportserver: https://reportserver.net/en/tutorials/i … e/#logging

Regards,
Eduardo

Offline

Board footer

Powered by FluxBB