EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: EPICS iocLog file size limitation
From: [email protected] (Deb Kerstiens)
To: [email protected], [email protected]
Cc: [email protected]
Date: Thu, 21 Mar 2002 10:39:16 -0700
The environment variable to change for filename is EPICS_IOC_LOG_FILE_NAME
and must be changed as Brian and Andrew described, not on the IOC, but on
the machine hosting the logserver process and log file (SUN, HP, etc.) We
have a startup script that is executed when the host is booted so that the
iocLogServer is automatically restarted, and the environment variables are
setup in the script.  (On our SUN, the script is in rc3.d)  I'm puzzled that 
"mv"ing the file results in having the logServer continue to write to the file 
in the new location, though. Maybe there's some system magic that keeps track 
of the file as long as it remains open for writing??

deb

> 
> Robert Willson wrote:
> > 
> > I have a rather odd problem with the logfile.  It seems that I cannot
> > change where the logfile goes, even if I change the name in resource.def.
> 
> >Stranger still, if I move (mv) the file to a different directory, EPICS
> >continues to write to that file, instead of creating a new one in the old
> >directory.  I do not understand this behavior.
>


> The location is not under the control of the IOC - any resource.def
> setting for the log filename will be ignored.  You have to change that
> setting for the log server (using environment variables before you start
> it) if you want to move the file, and if you want multiple files I think
> you have to run multiple servers on different port numbers.
> 
> - Andrew
> -- 
>
> The limit is in iocLogServer, and is controlled by the environment variable
> EPICS_IOC_LOG_FILE_LIMIT, which normally defaults to 1MB.  You can either
> change the default (CONFIG_SITE_ENV in $EPICS_BASE/config is the right
> place for that) or you can set it in the environment before you start the
> logServer.
>
> ----
> Brian McAllister                    Controls Programmer/Beam Physicist
> [email protected]                        MIT-Bates Linear Accelerator
>

Replies:
Re: EPICS iocLog file size limitation Steven Hartman
Re: EPICS iocLog file size limitation Brian McAllister

Navigate by Date:
Prev: Re: EPICS iocLog file size limitation Andrew Johnson
Next: Re: EPICS iocLog file size limitation Steven Hartman
Index: 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: EPICS iocLog file size limitation Deb Kerstiens
Next: Re: EPICS iocLog file size limitation Steven Hartman
Index: 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·