]> git.ipfire.org Git - people/stevee/guardian.git/blobdiff - modules/Logger.pm
Allow to configure the firewall action which will be performed.
[people/stevee/guardian.git] / modules / Logger.pm
index 6a70bc37fba82acdce837dc82bd9cc3ae31297b4..dbd3a815dfed5badbf827e8b004a7cde6d57483a 100644 (file)
@@ -24,7 +24,7 @@ my %logfacilities = (
 
 
 #
-## The "New" (Logger) function.
+## The "Init" (Logger) function.
 #
 ## This function is responsible to initialize the Logger as a class based object.
 ## It has to be called once before logging can be done.
@@ -32,7 +32,7 @@ my %logfacilities = (
 ## The following arguments must be passed, when initializing a new Logger:
 ## "LogLevel" and "LogFacility" with valid values from above.
 #
-sub New (%) {
+sub Init (%) {
        my ( $class, %args ) = @_;
        my $self = \%args;
 
@@ -91,7 +91,7 @@ sub Log ($$) {
 ## This really simple function just returns the hash which
 ## contains all supported log levels.
 #
-sub LogLevels () {
+sub GetLogLevels () {
        # Nothing to do, just return the loglevels hash.
        return %loglevels;
 }