Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

Support log file can be rotated hourly. #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Support log file can be rotated hourly. #20

wants to merge 1 commit into from

Conversation

maczam
Copy link

@maczam maczam commented May 20, 2018

  1. Support log file can be rotated hourly , filter add property hourly
  2. Tag support method runtime.Caller
<filter enabled="true">
        <tag>testlog</tag>
        <type>file</type>
        <level>INFO</level>
        <property name="filename">/pdata1/log/testlog.%Y%M%D%H.log</property>
        <property name="format">%M</property>
        <property name="rotate">true</property>
        <property name="append">true</property>
        <property name="maxsize">100M</property>
        <property name="hourly">true</property>
        <property name="tar">false</property>
        <property name="maxindex">20</property>
    </filter>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant