Added Logger interface, threaded MainLogger and updated PluginLogger

This commit is contained in:
Shoghi Cervantes
2014-05-28 23:46:56 +02:00
parent 9df56295f6
commit 7bd6f2ed91
22 changed files with 624 additions and 178 deletions

View File

@ -22,6 +22,7 @@
namespace pocketmine\permission;
use pocketmine\Server;
use pocketmine\utils\MainLogger;
class BanList{
@ -141,7 +142,7 @@ class BanList{
}
fclose($fp);
}else{
console("[ERROR] Could not load ban list");
MainLogger::getLogger()->error("Could not load ban list");
}
}
@ -159,7 +160,7 @@ class BanList{
}
fclose($fp);
}else{
console("[ERROR] Could not save ban list");
MainLogger::getLogger()->error("Could not save ban list");
}
}