Robin Bowes said the following on 22/11/2005 16:53:
> Robin Bowes said the following on 22/11/2005 16:17:
>
>>However, the following doesn't work:
>>
>> warn "$self->{_rejectprefix} tcp client:
>>$self->qp->connection->remote_host [$self->qp->connection->remote_ip]\n";
>>
>>Is the remote host/ip information no longer in $self->qp->connection ?
>
>
> Ack, my bad.
>
> Of course, objects don't work in strings.
>
> All is now working!
>
> I'll post my revised version of the adaptive logging plugin when I've
> tested a little more and tidied it up.
One small issue...
Each time the plugin is loaded I see a line as follows:
2005-11-22 17:16:15.036407500 11514 Loaded logging/adaptive.rb
acceptlevel 4 acceptprefix ++ rejectlevel 4 rejectprefix -- maxlevel 6
Because this contains both the acceptprefix and rejectprefix it appears
in both the accept log and the reject log, and it shows up twice for
each message.
Questions:
Is the plugin loaded twice? Is this normal/
Is this only appearing because I'm running at loglevel 7?
Would adding extra expressions in the multilog filter be the best way to
prevent this?
Also, a further thought: would it make sense to remove the "maxlevel"
option and use "loglevel" instead? This would mean that:
log messages <= acceptlevel will be logged to the accept log
log messages <= rejectlevel will be logged to the reject log
log messages <= loglevel will be logged to the detailed log
R.
--
http://robinbowes.com
If a man speaks in a forest,
and his wife's not there,
is he still wrong?