EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: RE: seqLog obsolete / errlog filtering based on source
From: Mark Rivers <[email protected]>
To: "'Emmanuel Mayssat'" <[email protected]>, "[email protected]" <[email protected]>, "[email protected]" <[email protected]>
Date: Wed, 5 Jun 2013 19:09:47 +0000

All messages generated by asyn can be redirected per asyn port driver, with asynSetTraceFile(port, addr, file). 

 

Mark

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of Emmanuel Mayssat
Sent: Wednesday, June 05, 2013 1:47 PM
To: [email protected]; [email protected]
Subject: seqLog obsolete / errlog filtering based on source

 

> From: [email protected]
> To: [email protected]
> Subject: Re: SEQ with dynamic assignment of PV in array variable
> Date: Tue, 4 Jun 2013 14:45:02 +0200

> The second reason is that the standard EPICS errlog facility can be used to 
> much the same effect (and note that it uses a much saner locking policy), i.e. 
> a simple wrapper around errlogPrintf, perhaps using a CPP macro to add the 
> state set and/or program name to the message. 

 

#define PRINTF errlogPrintf

 

> Admittedly, you cannot log 
> different program instances into different files, but if you incorporate a 
> suitably unique string into the messages then filtering them out of the IOC-
> wide log file can be done easily with standard unix command line tools such as 
> grep.

 

Are you talking about redirection like

RunIoc 2>my_log_file

?

Then the 'logfile' parameter provided to the seq is obviously ignored.

The only issue I have with this is that it is all or nothing.

1/

Admittedly, with the SEQ I can use grep when errlogs are redirected to a file.

BUT I am not so sure I can do this with other application (stream ,etc)

2/

But when there is no redirection, my IOC terminal is flooded with potentially irrelevant messages.

 

As anyone found a smart/easy way to filter/redirect messages based on the message source (asyn, stream, seq, autosave, etc) ?

 

--

Emmanuel


References:
seqLog obsolete / errlog filtering based on source Emmanuel Mayssat

Navigate by Date:
Prev: seqLog obsolete / errlog filtering based on source Emmanuel Mayssat
Next: Re: Clarification on aliases and the .NAME field Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: seqLog obsolete / errlog filtering based on source Emmanuel Mayssat
Next: Re: seqLog obsolete / errlog filtering based on source Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·