FAQ
I'm trying out the seelog <https://github.com/cihub/seelog> package for
logging:



Their example <https://github.com/cihub/seelog/wiki/Receiver-reference> for
a rolling log file date pattern is this:

<rollingfile type="date" filename="logs/roll.log" datepattern="02.01.2006" />


That creates filenames that don't list in order, however. When I change
the datepattern to be "2012-04-18" I get a file with the name

"180418-25-48 mailer.rolling.log"

which makes no sense at all. The datepattern is supposed to follow
time.Local().Format(). Where is it coming up with that prefix from?

Does anyone know how to get a datepattern with a YYYY-MM-DD
(year-month-day) prefix?

Thanks.


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

Search Discussions

  • Kyle Lemons at Apr 18, 2013 at 10:55 pm
    Disclaimer: I have no idea about seelog. But...
    On Thu, Apr 18, 2013 at 3:41 PM, Dean Schulze wrote:

    I'm trying out the seelog <https://github.com/cihub/seelog> package for
    logging:



    Their example <https://github.com/cihub/seelog/wiki/Receiver-reference>for a rolling log file date pattern is this:

    <rollingfile type="date" filename="logs/roll.log" datepattern="02.01.2006" />


    That creates filenames that don't list in order, however. When I change
    the datepattern to be "2012-04-18" I get a file with the name
    There is a good chance that you need to use the standard date (see the time
    package) which would be "2006-01-02"

    "180418-25-48 mailer.rolling.log"

    which makes no sense at all. The datepattern is supposed to follow
    time.Local().Format(). Where is it coming up with that prefix from?

    Does anyone know how to get a datepattern with a YYYY-MM-DD
    (year-month-day) prefix?

    Thanks.


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

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedApr 18, '13 at 10:42p
activeApr 18, '13 at 10:55p
posts2
users2
websitegolang.org

2 users in discussion

Dean Schulze: 1 post Kyle Lemons: 1 post

People

Translate

site design / logo © 2022 Grokbase