Logger.php 400 B

1234567891011121314151617181920212223242526
  1. <?php
  2. class Logger {
  3. public static function info($msg) {
  4. IF (! ON_LINE) {
  5. echo "<br/>";
  6. echo '【INFO】', $msg;
  7. echo "<br/>";
  8. }
  9. }
  10. public static function debug($msg) {
  11. if (DEBUG) {
  12. echo "<br/>";
  13. echo "【DEBUG】", $msg;
  14. echo "<br/>";
  15. }
  16. }
  17. public static function error($msg) {
  18. IF (!ON_LINE) {
  19. echo "<br/>";
  20. echo "【ERROR】", $msg;
  21. echo "<br/>";
  22. }
  23. }
  24. }
  25. ?>