log-functions.php 429 B

123456789101112131415161718192021222324
  1. <?php
  2. trait LogFunctions
  3. {
  4. public function info($msg, $username = null)
  5. {
  6. $this->writeLog('info', $msg, $username);
  7. }
  8. public function error($msg, $username = null)
  9. {
  10. $this->writeLog('error', $msg, $username);
  11. }
  12. public function warning($msg, $username = null)
  13. {
  14. $this->writeLog('warning', $msg, $username);
  15. }
  16. public function debug($msg, $username = null)
  17. {
  18. $this->writeLog('debug', $msg, $username);
  19. }
  20. }