PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
Loading...
Searching...
No Matches
Logger.php
1<?php
2
3/*
4 * PocketMine Standard PHP Library
5 * Copyright (C) 2014-2018 PocketMine Team <https://github.com/PocketMine/PocketMine-SPL>
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16*/
17
18interface Logger{
19
27 public function emergency($message);
28
36 public function alert($message);
37
45 public function critical($message);
46
55 public function error($message);
56
67 public function warning($message);
68
76 public function notice($message);
77
85 public function info($message);
86
94 public function debug($message);
95
104 public function log($level, $message);
105
115 public function logException(\Throwable $e, $trace = null);
116}
debug($message)
logException(\Throwable $e, $trace=null)
notice($message)
emergency($message)
error($message)
log($level, $message)
info($message)
critical($message)
alert($message)
warning($message)