The OSGI Log Reader allows the Aspire system to log all messages with a severity above debug to a single file. The OSGI log reader is a component itself and uses the standard component logging and therefore:
All log files are written under the $ASPIRE_HOME directory. The actual path for the log file is configured in the component's XML configuration. Log files are rotated on a daily basis, or on a configurable size limit. Rotated log files receive a time stamp upon rotation. The last n messages are kept locally for display. Messages kept locally (for view via the status page) are truncated to 200 characters.
OSGI Log Reader | |
---|---|
Factory Name | com.searchtechnologiesaccenture.aspire:aspire-tools |
subType | feederOverview |
Inputs | OSGI log reader service |
Outputs | Log files |
Element | Type | Default | Description |
---|---|---|---|
logfile | string | log/aspireOSGISystem.log | The name of the file to write log messages to. |
maxFileSize | int | 10Mb | The maximum size of the log file before automatic rotation to a new file. |
keepMessages | int | 1000 | The number of messages to retain locally for display via the status page. |
minLogLevel | string | info | The minimum log level message written to the log file. Change the value to warn to prevent info message from being written to the log file. |
<component name="log" subType="osgiLogReader" factoryName="aspire-tools"> <logFile>log/aspireOSGIlog.log</logFile> <maxFileSize>209715200</maxFileSize> </component>
<component name="log" subType="osgiLogReader" factoryName="aspire-tools"> <logFile>log/aspireOSGIlog.log</logFile> <maxFileSize>2097152000</maxFileSize> <keepMessages>2000</keepMessages> <minLogLevel>warn</minLogLevel> </component>
In addition to the view and rotate the log (see Logging) you may also:
e.g., http://blade3:50505/aspire/systemCommon/log?cmd=keep&numMsg=1000
e.g., http://blade3:50505/aspire/systemCommon/log?cmd=minLevel&level=warn
e.g., http://blade3:50505/aspire/systemCommon/log?cmd=rotate