2.0.7 2024-05-28 13:27 UTC

This package is auto-updated.

Last update: 2024-09-07 08:35:49 UTC


README

帮助调试代码。

安装

composer require habeuk/debug

作者

Logo habeuk 提供者 habeuk.com

使用方法

如果您想通过邮件发送日志,则需要设置smtp参数。

DebugLogger::$smtpSettings['host'] = '';
DebugLogger::$smtpSettings['sender'] = "";
DebugLogger::$smtpSettings['sender_name'] = '';
DebugLogger::$smtpSettings['port'] = 587;
DebugLogger::$smtpSettings['user_name'] = "";
DebugLogger::$smtpSettings['password'] = "";
DebugLogger::$smtpSettings['recipients'] = ['email1', 'email2']
DebugLogger::$logDir = "log path"; // The path where you want to save the log files