#
-## 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.
## 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;
}
}
-#
-## The Update (Logger) settings function
-#
-## This function is used to update the object settings of the
-## initialized Logger class.
-#
-sub Update (%) {
- my ($self, %args) = @_;
-
- # Map the new hash keys and values to the existing one inside
- # the class.
- map { $self->{ $_ } = $args{ $_ } } keys %args;
-}
-
#
## GetLogLevels function.
#
## 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;
}