Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seaslog.default_template 不起作用? #239

Open
david0315 opened this issue Sep 21, 2018 · 3 comments
Open

seaslog.default_template 不起作用? #239

david0315 opened this issue Sep 21, 2018 · 3 comments

Comments

@david0315
Copy link

我的php.ini 配置如下:
seaslog.default_template = "%T | %L | %I | %H | %P | %Q | %t | %M"

image

还有一个问题:
mac 下貌似不能写入其它级别的log 只能写入 EMERGENCY 级别的错误,
我的配置是

;;记录日志级别,数字越大,根据级别记的日志越多。
;;0-EMERGENCY 1-ALERT 2-CRITICAL 3-ERROR 4-WARNING 5-NOTICE 6-INFO 7-DEBUG 8-ALL
;;默认8(所有日志)
;;
;; 注意, 该配置项自1.7.0版本开始有变动。
;; 在1.7.0版本之前, 该值数字越小,根据级别记的日志越多:
;; 0-all 1-debug 2-info 3-notice 4-warning 5-error 6-critical 7-alert 8-emergency
;; 1.7.0 之前的版本,该值默认为0(所有日志);
seaslog.level = 8

@Neeke
Copy link
Member

Neeke commented Sep 25, 2018

@lklkdawei 你的配置中appender为3,使用UDP端口,此时SeasLog会向127.0.0.1的514端口的UDP服务发送

@david0315
Copy link
Author

@lklkdawei 你的配置中appender为3,使用UDP端口,此时SeasLog会向127.0.0.1的514端口的UDP服务发送

@Neeke 我是否要开启UDP端口,我在生成环境就是这样部署了,也没有刻意的打开 514 的端口,日志也是可以写到远程日志服务器

@aiwhj
Copy link
Member

aiwhj commented Sep 29, 2018

如果没有刻意打开,应该是本来就没有被禁用吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants