[pbs-devel] [RFC proxmox v2 2/2] proxmox-log: added tracing infra
Gabriel Goller
g.goller at proxmox.com
Fri Nov 3 11:49:05 CET 2023
On 11/3/23 11:39, Wolfgang Bumiller wrote:
> [..]
>> Yes, kinda.
>> I think I'll check if a FileLogger exists, then print to syslog or tasklog.
>> The thing is I don't know if I should keep it simple and merge everything
>> in a single layer, or if I should do the check in the Filters (of which
>> there are
>> two, one for each layer).
>> If we merge it into a single layer, it's easy and fast, but it's not that
>> clean
>> anymore, we can't reuse the single layers etc..
> But do we even want to right now?
> If so we can still split them later.
>
>> If we keep them separated, we have to check twice if the FileLogger exists
>> (in each filter)
> I'm confused, I thought one layer was only for syslog, why would we
> check the file logger there?
Because if we write the log to tasklog, we don't want to write
to syslog as well.
>> (it's probably not so expensive, but still) but we'll keep the FileLogLayer
>> and the
>> SyslogLayer separated and clean.
>> What do you think?
> I'd lean towards a single layer, mainly because I don't currently see
> the immediate use of multiple ones.
>
> I mean, we can still change things later if we need to.
> But IMO the current set of requirements should be covered fine by one
> layer.
I agree, I will submit a first version of the patch shortly.
More information about the pbs-devel
mailing list