ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# Abstract class **Phalcon\Logger\Adapter**[](# "永久链接至标题") Base class for Phalcon\Logger adapters ### Methods[](# "永久链接至标题") public **setLogLevel** (*unknown* $level) Filters the logs sent to the handlers that are less or equal than a specific level public **getLogLevel** () Returns the current log level public **setFormatter** (*unknown* $formatter) Sets the message formatter public **begin** () Starts a transaction public **commit** () Commits the internal transaction public **rollback** () Rollbacks the internal transaction public **critical** (*unknown* $message, [*unknown* $context]) Sends/Writes a critical message to the log public **emergency** (*unknown* $message, [*unknown* $context]) Sends/Writes an emergency message to the log public **debug** (*unknown* $message, [*unknown* $context]) Sends/Writes a debug message to the log public **error** (*unknown* $message, [*unknown* $context]) Sends/Writes an error message to the log public **info** (*unknown* $message, [*unknown* $context]) Sends/Writes an info message to the log public **notice** (*unknown* $message, [*unknown* $context]) Sends/Writes a notice message to the log public **warning** (*unknown* $message, [*unknown* $context]) Sends/Writes a warning message to the log public **alert** (*unknown* $message, [*unknown* $context]) Sends/Writes an alert message to the log public [*Phalcon\Logger\AdapterInterface*](#)**log** (*mixed* $type, [*mixed* $message], [*mixed* $context]) Logs messages to the internal logger. Appends logs to the logger | - [索引](# "总目录") - [下一页](# "Class Phalcon\Logger\Adapter\File") | - [上一页](# "Abstract class Phalcon\Logger") | - [API Indice](#) »