added a new logger

This commit is contained in:
JT Smith 2005-04-01 03:24:23 +00:00
parent 69cd257beb
commit 6aa9f76a71
23 changed files with 197 additions and 242 deletions

View file

@ -41,10 +41,10 @@ sub getInstance {
#Create Auth Object
my $cmd = "WebGUI::Auth::".$authMethod;
my $load = "use ".$cmd;
WebGUI::ErrorHandler::fatalError("Authentication module failed to compile: $cmd.".$@) if($@);
WebGUI::ErrorHandler::fatal("Authentication module failed to compile: $cmd.".$@) if($@);
eval($load);
my $auth = eval{$cmd->new($authMethod,$userId)};
WebGUI::ErrorHandler::fatalError("Couldn't instanciate authentication module: $authMethod. Root cause: ".$@) if($@);
WebGUI::ErrorHandler::fatal("Couldn't instanciate authentication module: $authMethod. Root cause: ".$@) if($@);
return $auth;
}

View file

@ -68,7 +68,7 @@ sub www_viewHelpIndex {
tie %helpIndex, "Tie::IxHash";
my $i;
my $dir = $session{config}{webguiRoot}.$session{os}{slash}."lib".$session{os}{slash}."WebGUI".$session{os}{slash}."Help";
opendir (DIR,$dir) or WebGUI::ErrorHandler::fatalError("Can't open Help directory!");
opendir (DIR,$dir) or WebGUI::ErrorHandler::fatal("Can't open Help directory!");
my @files = readdir(DIR);
closedir(DIR);
foreach my $file (@files) {
@ -85,7 +85,7 @@ sub www_viewHelpIndex {
$i++;
}
} else {
WebGUI::ErrorHandler::warn("Help failed to compile: $namespace. ".$@);
WebGUI::ErrorHandler::error("Help failed to compile: $namespace. ".$@);
}
}
}