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  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 
<== Date ==> <== Thread ==>

Subject: seqLog obsolete / errlog filtering based on source
From: Emmanuel Mayssat <emayssat@outlook.com>
To: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>, "benjamin.franksen@helmholtz-berlin.de" <benjamin.franksen@helmholtz-berlin.de>
Date: Wed, 5 Jun 2013 11:47:22 -0700
> From: benjamin.franksen@helmholtz-berlin.de
> To: tech-talk@aps.anl.gov
> 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

Replies:
RE: seqLog obsolete / errlog filtering based on source Mark Rivers
Re: seqLog obsolete / errlog filtering based on source Benjamin Franksen

Navigate by Date:
Prev: Clarification on aliases and the .NAME field Shankar, Murali
Next: RE: seqLog obsolete / errlog filtering based on source Mark Rivers
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 
Navigate by Thread:
Prev: Re: Clarification on aliases and the .NAME field Andrew Johnson
Next: RE: seqLog obsolete / errlog filtering based on source Mark Rivers
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 
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 ·