Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-12772

CLONE - Need to have date time stamp in log4j output

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • Affects Version/s: 5.0.N
    • Fix Version/s: 5.0.1
    • Component/s: Repository
    • Labels:
      None

      Description

      Can we have the date and time stamp included by default in the logs produced by Alfresco (alfresco.log, share.log and solr.log)?

      Many times the support team receives extracts from the logs from customers and we can not tell when these logs were generated.

      This can be achieved by replacing the entry in log4j properties file:
      log4j.appender.File.layout.ConversionPattern=%d

      {ABSOLUTE} %-5p [%c] [%t] %m%n

      by this one:

      log4j.appender.File.layout.ConversionPattern=%d{yyyy-MM-dd} %d{ABSOLUTE}

      %-5p [%c] %m%n

      The entries should look like these ones:
      2014-10-15 20:53:17,317 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
      2014-10-15 20:53:17,362 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
      2014-10-15 20:53:17,363 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
      2014-10-15 20:53:17,365 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs
                  Reporter:
                  mrodriguez Miguel Rodriguez
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel