使用socket.io在heroku上进行大规模日志记录

时间:2013-06-25 20:51:42

标签: logging heroku socket.io

我在heroku上使用socket.io。要做到这一点,我必须使用xhr-polling on heroku。但是,这样就可以创建大量的日志。

2013-04-25T20:15:49.255467+00:00 heroku[router]: at=info method=GET path=/socket.io/1/xhr-polling/cOO67jH_mH2cIjDt5OWX?t=1372192165157 host=xyz.com fwd="123.12.12.123" dyno=web.1 connect=1ms service=2044ms status=200 bytes=3

我尝试使用

减少socket io所做的日志记录
io.configure ()-> 
    io.set "transports", ["xhr-polling"]

但看起来日志记录可能在heroku级别而不是socket.io级别。

1 个答案:

答案 0 :(得分:1)

您可以更改日志记录级别。寻找'日志级别'... https://github.com/LearnBoost/Socket.IO/wiki/Configuring-Socket.IO

相关问题