无法使用 log_message 在 localhost/Git Bash 上显示 data/logs

Cannot show data/logs on localhost/Git Bash using log_message

我使用 Codeigniter 并且我想在我的本地主机浏览器中显示我的日志或 Git Bash 用于日志消息,我试过了但没有用。

我在我的 config.php 中使用它:

$config['log_threshold'] = 1;

这是我的 log_message:

log_message('error',print_r($data, true));

我尝试 运行 $ tail -f application/logs 但没有出现日志文件。

有什么可以帮助我的吗?

日志保存在 php 文件中,名称格式为 log-Y-m-d.php。所以像这样尝试

$ tail -f application/logs/log-2018-05-07.php

git bash 结果