Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-688

Provide a way for localtime date pattern

    XMLWordPrintable

Details

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • None

    Description

      I am providing a client library for customers all over the world. The client library is using slf4j. It also comes with a preconfigured logback version that provides logging for the commandline interface of the library and as an example working logging solution for my client library. I am also providing an out-of-the-box working logback.xml configuration.

      I now would like to have a possibility to log the current local time of the client in the log file. I currently can only specify no time zone that defaults back to GMT which will for sure raise lots of support calls to me, because lots of my clients don't even know what GMT is nor how to spell it...

      But I also can't specify a specific time zone, because I am in Europe and some of my customers are in China, so that would be awkward for them, too.

      So please provide a way for me to log the current localtime of the running program. (without dynamic log configuration via xml please). Using a special timezone value or something.

      This would be great, thanks!

      Attachments

        Activity

          People

            logback-dev Logback dev list
            sahlbach Andreas Sahlbach
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: