On 10/26/10 4:14 PM, Risto Vaarandi wrote:
> Are you requesting this feature because you would like to change the list of 
> configuration files without restarting SEC? If so, then you could also take 
> advantage of SEC resource file which can be provided with an environment 
> variable.
> As for changing syslog tag field dynamically for every message -- 
> unfortunately, the openlog(3) C-library function sets the program name for 
> all subsequent logging, so this means that connection to syslog would have to 
> be reopened and closed for each call to syslog(3) function. I think there is 
> no clean way to replace the program name string temporarily with something 
> else, so I will have to investigate what would be the possible performance 
> penalty of opening and closing connection to syslogd for each logging attempt.
> kind regards,
> risto
With regards to the list of configuration files.. sometimes it is 
difficult to load all of the -conf=<filename> on the command line.  I am 
interested in providing a clean looking process table.  And, it might be 
nice to change the list of configuration files without a restart of 
SEC.  So if I wished to use a SECRC, an example (this is not clear in 
the documentation) might be

$SEC/.secrc:
-input=<input 1>
-input=<input 2>
-config=<config 1>
-config=<config 2>
-log=<logfile>
-pid=<pidfile>
-dump=<dumpfile>

With regards to syslog tags, since it seems too difficult to do, I will 
assign text to %TAG, and  use that as part of the logonly line,
     logonly %TAG <my message>
so that the line in syslog comes out looking like ...
   sec.pl[<pid>] <my tag> <my message>

Relating the two requests:
If I provide multiple configuration files as above, I might want to have 
a different %TAG for each file, so I would want a way of localizing the 
configuration scope...

Please advise,
Tim Peiffer

-- 
Tim Peiffer
Network Support Engineer
Office of Information Technology
University of Minnesota/NorthernLights GigaPOP

+1 612 626-7884 (desk)


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Simple-evcorr-users mailing list
Simple-evcorr-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to