[pca] better logging [feature request]
Martin Paul
martin at par.univie.ac.at
Fri Oct 7 15:12:47 CEST 2011
dpecka wrote:
> well, it was only proposal .. i know that i can do it by syslog but
> we're using pca also in prod and on many hosts and it's sometimes tricky
> to convince managers that we want to modify syslog on 100 servers ..
I see. So I guess one option could be to add a new option to PCA - like "--tee
/var/log/pca.log" - which would then send the complete output which goes to
screen also to the specified logfile? It's not so easy, though, as right now
various parts of PCA code use print/printf for output. One would have to
canalize that to a single function. Running "pca | tee" is definitely easier :)
> posibility to split pkgadd log and pca own log sounds reasonable to
> me ..
Hm, pkgadd or patchadd? Actually, PCA normally doesn't show output from either
command. It only shows patchadd output when a patch fails to install. Sure it's
possible to direct different output to different files/targets, but defining an
option set or language which will allow such fine grained configuration seems
like overkill.
Anyway, let's see if other ideas or wishes regarding logging come up, then we'll
see how much flexibility is needed.
Martin.
More information about the pca
mailing list