新手问题 请教如何在 cloudfoundry 的日志中看 print 的输出

otecteng · May 30, 2013 · Last by otecteng replied at May 30, 2013 · 2174 hits

rails 3,使用 print 或者 p 打印日志,使用 vmc logs app 查看日志,logs/console.log,logs/stdout.log 都没有看到输出,请教是否需要修改什么配置,还是需要引用其它包来实现日志打印?

我很土,用这个 logger.debug("Logs: #{@user.name}")

@xazaj , it works, thanks

You need to Sign in before reply, if you don't have an account, please Sign up first.