Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在保存或发布一项时记录我的组件。 如何在 joomla 3 中覆盖日志模板?默认输出如下:
2013-06-03T04:41:53+00:00 INFO - Some text is here
我只想删除日期时间。我正在使用 JLog 类
只需像这样为记录器添加选项:
JLog::addLogger(array('text_file' => 'log_file.log', 'text_file_path' => JPATH_ROOT . '/logs', "logger" => "formattedtext", "text_entry_format" => '{PRIORITY} {CATEGORY} {MESSAGE}'));