In these notes replace [MIDASBASE] with the base of your software installation (default is /MIDAS).
Normally you will install the client package and (optionally) the server package.
package require MessageLoggerServerThere are a number of configuration options. The following shows these with the default settings.
global env global MIDAS_MessageLoggerServer_UseElog MIDAS_MessageLoggerServer_UseFile MIDAS_MessageLoggerServer_ElogCmd set MIDAS_MessageLoggerServer_UseFile 1 ;# write to /MIDAS/log set MIDAS_MessageLoggerServer_UseELog 0 ;# no send to ELog set MIDAS_MessageLoggerServer_ElogCmd [file join $env(MIDASBASE) config TclHttpd Samples Elog.cmd] set env(MessageLoggerBase) "/MIDAS/log" ;# not required if no write to /MIDAS/log package require MessageLoggerServerThe MessageLogger can be configured to write messages to dated files within the [MIDASBASE]/log directory; to logbooks within the Elog system or both. Set the appropiate Use flags.
#!/bin/csh -f /usr/local/bin/elog -h nndhcp077 -p 8080 -l "DataAcq" -u username password \ -a Author=MIDAS -a Source=$3 -a Category=$2 -a Subject=$1 -m $4Obviously in order to use this feature the Elog package must be loaded. See the Elog website for further information.
global MessageLoggerServerHost set MessageLoggerServerHost nndhcp077 package require MessageLoggerClientwhere MessageLoggerServerHost contains the name of a host running a server installation. The definition of MessageLoggerServerHost is optional: if omitted the default is localhost - that is you have installed the server interface in this system.
V Pucknell; STFC; Daresbury Lab 9 July 2009