作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
使用 pgFouine 1.2,PostgreSQL 9.1.3。
postgresql.conf 设置:
log_min_duration_statement = 0
log_duration = on
log_line_prefix = '%t [%p]: [%l-1] '
log_statement = 'all'
lc_messages = 'C' # locale for system error message strings
lc_monetary = 'C' # locale for monetary formatting
lc_numeric = 'C' # locale for number formatting
lc_time = 'C' # locale for time formatting
运行 pgFouine 时出现错误:
C:\Users\Razvan\Desktop\pgfouine-1.2>php pgfouine.php -file log > report.html
pgFouine did not find any valid PostgreSQL log line in your log file:
* check that PostgreSQL uses an english locale for logging (lc_messages in your postgresql.conf),
* check that you use the -logtype option (syslog, stderr) according to your log file,
* if you use syslog and log_line_prefix, check that your log_line_prefix has a trailing space,
* if you use stderr, check that your log_line_prefix is of the form '%t [%p]: [%l-1] '.
If you think your log file and your options are correct, please contact the author (gsmet on #postgresql@freenode or guillaume-pg at smet dot org).
我正在使用在 C:\Program Files\PostgreSQL\9.1\data\pg_log
中找到的日志文件
我尝试了各种设置,但没有任何效果,也无法在互联网上找到任何解决方案。
感谢您的帮助!
最佳答案
尝试添加日志类型选项:
pgfouine -logtype stderr -file filename
关于php - 如何在 PostgreSQL 9.1 中使用 pgFouine?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10651890/
我正在使用 pgFouine作为我的 postgreSQL 数据库的日志分析器。日志通过系统日志存储。我不想看到每个数据库用户的日志,而只想看到我的一个应用程序的日志。 该怎么做?过滤器必须应用于 s
使用 pgFouine 1.2,PostgreSQL 9.1.3。 postgresql.conf 设置: log_min_duration_statement = 0 log_duration =
我是一名优秀的程序员,十分优秀!