Opened 4 years ago

Closed 2 years ago

#703 closed enhancement (fixed)

Grits version number in log

Reported by: Rene Ranzinger Owned by: sena
Priority: normal Milestone: GRITS - 1.2 SR2
Component: GRITS core Version: GRITS 1.1.x
Severity: major Keywords:
Cc: shan

Description

If possible add the version of GRITS in the log file:

  • either in the file name "GRITS-{version}-{date}.log
  • or/and in the file as itself as a mandatory message in the beginning.

It would be good if we can get the version number from the plugin itself (dynamic). If that is not possible we have to create a final static but make sure to update this version together with the plugin.

Change History (7)

comment:1 Changed 4 years ago by Rene Ranzinger

Owner: set to shan
Status: newassigned

comment:2 Changed 4 years ago by Rene Ranzinger

Milestone: GRITS - 1.1 SR1GRITS - 1.1 SR2

comment:3 Changed 3 years ago by sena

Milestone: GRITS - 1.2GRITS - 1.2 SR1

comment:4 Changed 3 years ago by shan

Owner: changed from shan to sena
  • Plugin : org.grits.toolbox.core
  • Package : org.grits.toolbox.core.log
  • Class : GritsLogAppender & GRITSLog

Also look into postContextCreate(IApplicationContext applicationContext) method in org.grits.toolbox.core.ApplicationManager class for starting log.

comment:5 Changed 2 years ago by Rene Ranzinger

Milestone: GRITS - 1.2 SR1GRITS - 1.2 SR2

comment:6 Changed 2 years ago by sena

Resolution: fixed
Status: assignedreview

I could not find a reliable method to get the version number directly from the product file. Instead a new org.grits.toolbox.core.GritsConfig class is created to define the static version and version name constants. In revision [2803]

comment:7 Changed 2 years ago by sena

Status: reviewclosed

tested in revision [2944] - GRITS 1.2.3

Note: See TracTickets for help on using tickets.