-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change name from TeeLogger
?
#1
Comments
Possibilities...
|
Go's log15 library calls this a |
+1 for |
I'm +1 for function handle_message(logger::SwitchLogger, args...; kwargs...)
i = findfirst(l -> comp_shouldlog(l, args...), logger.logging)
i === nothing && return
return handle_message(logger.logging[i], args...; kwargs...)
end |
I would not call that |
The main reason I brought this up was to highlight that the name |
As noted on #22, I'm fine with the name In particular, considering Mux vs Demux naming, what would be the equivalent of I did like |
Actually my +1 to I think that
[1] Since the filtering happens in function maybe_handle_message(logger, args...; kwargs...)
if comp_handle_message_check(logger, args...; kwargs...)
handle_message(logger, args...; kwargs...)
end
end then function handle_message(demux::DemuxLogger, args...; kwargs...)
for logger in demux.loggers
maybe_handle_message(logger, args...; kwargs...)
end
end |
|
Having said that, we could have |
MuxLogger is achieved via passing the same child to many parents See #19 |
When I came up with the name
DemuxLogger
,I was thinking that it would do the routing itself.
Taking in both rules, and loggers.
But it is easier to just leave the rules to the filtered logger.
I am not sure what is a better name for this
The text was updated successfully, but these errors were encountered: