Thank you sir  to have taken the time for reply.
 I take good note of the environment setting you can make for log4net. ref  
http://opensimulator.org/wiki/Logging . I did not know you could be  using 
environment variables in log4net config file as presented in reference. So by 
extending  this idea,   I tested that I can change the name of the created log 
by setting an environment vairiable of  my choice and applying it to 
opensim.exe.config. At least in ubuntu linux system,  your window results might 
differ. 

By default OpenSim.exe.config creates  OpenSim.log  the following change it to  
OpenSim.SimA : 

Bash file extract:    logName="simA"    export logName    mono OpenSim.exe 
-inidirectory="./configA"   
The following is the change made to  OpenSim.exe.config . I am also using a 
rolling appender that is why the following is different from yours.  That 
configuration append dates to the daily log name so it makes smaller files 
easier to be searched backup and maintained. 

    <appender name="LogFileAppender" 
type="log4net.Appender.RollingFileAppender">
      <file type="log4net.Util.PatternString" value="log/OpenSim.${logName}" />
      <rollingStyle value="Date" />
      <datePattern value="'.'yyyy-MM-dd"/>
The resulting log files located in bin/log are 
    opensim.simA ( current log  for the day ) 
    opensim.simA.2019-11-07  ( yesterday one and so on ) 

In regard to ini file , the motivation  of  a specific  gridcommonA.ini for 
GridA and  a gridcommonB.ini for GridB is that those cannot be located in 
config-include. A situation you dont face in dreamgrid as its only one grid 
setup. 

in regards to *.ini sequence, the content of my ./configA as OpenSim.exe 
parameter for -inidirectory is as follow :./configA 
    simA.ini    gridcommonA.ini 
In updating to version 091, I noted that moving the SAME configuration data for 
[Messaging] from gridCommonA.ini  where it did not read to simA.ini make it 
read properly.
 Please note that  the path to folder for config ini files in OpenSim.exe 
inidirectory parameter will read all of *.ini files in this directory and 
override OpenSim.ini settings. ref: 
http://opensimulator.org/wiki/OpenSim.exe_Command_Line_Options
The above setting is working fine in 0901.  Its a change of behaviour for 091 
opensim version. As tested for linux system, when applying  messaging 
configuration .  ALL the other configuration data are read correctly.   I note, 
and disclose this behavior ,   for  developer's consideration,  and other users 
information.
Hope it helps. 

GiMiSa


_______________________________________________
Opensim-dev mailing list
Opensim-dev@opensimulator.org
http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-dev

Reply via email to