summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Log/Dispatch/Channels.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Log/Dispatch/Channels.pm b/lib/Log/Dispatch/Channels.pm
index aeb52b1..fad047d 100644
--- a/lib/Log/Dispatch/Channels.pm
+++ b/lib/Log/Dispatch/Channels.pm
@@ -27,6 +27,13 @@ sub new_channel {
$self->{channels}{$channel} = Log::Dispatch->new(@_);
}
+sub remove_channel {
+ my $self = shift;
+ my $channel = shift;
+
+ return delete $self->{channels}{$channel};
+}
+
sub _forward_to_channels {
my $self = shift;
my $channels = shift;