<?xml version="1.0" encoding="UTF-8"?>

<configuration scan="true" scanPeriod="60 seconds" debug="true">
    <property name="LOG_DIR" value="${EXT_DIR:-/sdcard}/Android/data/org.courville.nova/files/logback"/>

    <appender name="logcat" class="ch.qos.logback.classic.android.LogcatAppender">
        <tagEncoder>
            <pattern>%logger{200}</pattern>
        </tagEncoder>
        <encoder>
            <!--<pattern>[%thread] %-5level %logger{36} - %msg%n</pattern>-->
            <pattern>%msg%n</pattern>
        </encoder>
        <filter class="ch.qos.logback.classic.filter.LevelFilter">
            <!-- exclude trace from logcat-->
            <level>DEBUG</level>
        </filter>
    </appender>

    <appender name="LOG_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <file>${LOG_DIR}/nova.log</file>
        <encoder>
            <!--<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>-->
            <pattern>%msg%n</pattern>
        </encoder>
        <filter class="ch.qos.logback.classic.filter.LevelFilter">
            <!-- exclude trace from logcat-->
            <level>DEBUG</level>
        </filter>
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <fileNamePattern>${LOG_DIR}/nova-%d.log</fileNamePattern>
            <maxHistory>7</maxHistory>
            <totalSizeCap>50MB</totalSizeCap>
        </rollingPolicy>
    </appender>

    <logger name="com.archos.mediacenter.video.browser.MainActivity" level="DEBUG"/>
    <logger name="com.archos.mediacenter.video.browser.MainFragment" level="DEBUG"/>
    <logger name="com.archos.mediacenter.video.leanback.MainFragment" level="DEBUG"/>
    <logger name="com.archos.mediacenter.video.CustomApplication" level="TRACE"/>

    <logger name="com.archos.mediacenter.video.browser.PermissionChecker" level="DEBUG"/>

    <!--<logger name="jcifs.netbios.UdpDiscovery" level="TRACE"/>
    <logger name="com.archos.filecorelibrary.jcifs" level="DEBUG"/>
    <logger name="com.archos.mediacenter.video.browser.filebrowsing.network.SmbBrowser" level="DEBUG"/>
    <logger name="jcifs.netbios.UdpDiscovery" level="DEBUG"/>
    <logger name="jcifs.netbios.NameServiceClientImpl" level="TRACE"/>
    <logger name="jcifs.smb.SmbSessionImpl" level="TRACE"/>
    <logger name="jcifs.util.transport.Transport" level="TRACE"/>
    <logger name="jcifs.smb.SmbTransportImpl" level="TRACE"/>
    <logger name="com.archos.filecorelibrary.samba" level="DEBUG"/>-->

    <logger name="com.archos.mediacenter.video.player.Player" level="DEBUG"/>
    <!--<logger name="com.archos.mediacenter.video.player.PlayerActivity" level="DEBUG"/>
    <logger name="com.archos.mediacenter.video.player.PlayerController" level="DEBUG"/>
    <logger name="com.archos.mediacenter.video.player.PlayerService" level="DEBUG"/>
    <logger name="com.archos.mediacenter.video.player.MediaButtonService" level="DEBUG"/>-->

    <!--<logger name="com.archos.mediacenter.video.leanback.details.VideoDetailsFragment" level="DEBUG"/>-->

    <!--<logger name="com.archos.mediacenter.video.leanback.details" level="DEBUG"/>
    <logger name="com.archos.mediacenter.video.info" level="DEBUG"/>-->

    <!--<logger name="com.archos.mediascraper.xml" level="DEBUG"/>
    <logger name="com.archos.mediascraper.themoviedb3" level="DEBUG"/>-->

    <!--<logger name="com.archos.filecorelibrary.FileUtils" level="DEBUG"/>
    <logger name="com.archos.mediascraper.NfoWriter" level="TRACE"/>
    <logger name="com.archos.mediascraper.NfoParser" level="DEBUG"/>
    <logger name="com.archos.mediaprovider.video.NetworkScannerServiceVideo" level="DEBUG"/>-->

    <!--<logger name="com.archos.mediacenter.video.widget.RemoteViewsFactoryAllVideos" level="DEBUG"/>
    <logger name="com.archos.mediacenter.video.widget.RemoteViewsFactoryBase" level="DEBUG"/>
    <logger name="com.archos.mediacenter.video.widget.AppWidgetProvider" level="DEBUG"/>-->

    <!--<logger name="com.archos.mediascraper.LocalImages" level="DEBUG"/>
    <logger name="com.archos.mediacenter.video.browser.Delete" level="DEBUG"/>-->
    <!--<logger name="com.archos.filecorelibrary.FileUtilsQ" level="DEBUG"/>-->
    <!--<logger name="com.archos.filecorelibrary.localstorage.LocalStorageFileEditor" level="DEBUG"/>
    <logger name="com.archos.mediacenter.video.browser.Browser" level="DEBUG"/>
    <logger name="com.archos.mediacenter.video.browser.Delete" level="DEBUG"/>
    <logger name="com.archos.mediacenter.video.info.VideoInfoActivityFragment" level="DEBUG"/>
    <logger name="com.archos.mediacenter.video.leanback.tvshow.SeasonFragment" level="DEBUG"/>
    <logger name="com.archos.mediacenter.video.leanback.collections.CollectionFragment" level="DEBUG"/>-->
    <!--<logger name="com.archos.mediacenter.video.leanback.details.VideoDetailsFragment" level="DEBUG"/>
    <logger name="com.archos.mediacenter.video.leanback.details.VideoActionAdapter" level="DEBUG"/>-->
    <!--<logger name="com.archos.mediascraper.preprocess.TvShowMatcher" level="DEBUG"/>
    <logger name="com.archos.mediascraper.themoviedb3.ShowIdEpisodes" level="DEBUG"/>
    <logger name="com.archos.mediascraper.EpisodeTags" level="DEBUG"/>
    <logger name="com.archos.mediascraper.ScraperImage" level="DEBUG"/>-->
    <!--<logger name="com.archos.mediascraper.ShowTags" level="DEBUG"/>-->

    <!--<logger name="com.archos.mediascraper.AutoScrapeService" level="DEBUG"/>-->
    <!--<<logger name="com.archos.mediaprovider.video.VideoStoreImportImpl" level="DEBUG"/>-->
    <!--<logger name="com.archos.mediacenter.video.browser.BrowserByIndexedVideos.BrowserWithShowHeader" level="DEBUG"/>-->

    <logger name="com.archos.mediaprovider.video.VideoStoreImportReceiver" level="DEBUG"/>
    <logger name="com.archos.mediaprovider.video.VideoStoreImportService" level="DEBUG"/>
    <!--<logger name="com.archos.mediaprovider.video.VideoProvider" level="DEBUG"/>-->

    <!--<logger name="com.archos.mediacenter.video.widget.WidgetProviderVideo" level="DEBUG"/>-->

    <!--<logger name="com.archos.mediaprovider.video.NetworkAutoRefresh" level="DEBUG"/>
    <logger name="com.archos.mediaprovider.video.NetworkScannerUtil" level="DEBUG"/>
    <logger name="com.archos.mediaprovider.video.NetworkScannerServiceVideo" level="DEBUG"/>
    <logger name="com.archos.mediaprovider.video.NetworkRefreshJob" level="DEBUG"/>-->

    <includes>
        <include file="${LOG_DIR}/logback.xml" optional="true" />
    </includes>

    <root level="INFO">
        <appender-ref ref="logcat"/>
    </root>

</configuration>
