-
-
Notifications
You must be signed in to change notification settings - Fork 295
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
Log file name, line #73
Comments
You want to have callee, file and line included in the log lines for the request log? |
yes, e.g. in user.rb, i write logger.debug("hello world") in 38 line in foo method, then the log output [DEBUG user.rb: 38 in `foo'] hello world |
That's something you'll have to configure in the logger you're using. lograge's purpose is only to log request lines, nothing else. |
OK, thanks, could you give me some suggestions? please |
You could implement your own logging method: def log(message)
Rails.logger.info("(From #{caller.first}: #{message}")
end |
Thanks!!! |
Hey, I want to log the logger.debug, logger.info, etc. call in controller information, sunch as callee , FILE, LINE , so I can trace the souce code information in log file.
How can i do that? Please
The text was updated successfully, but these errors were encountered: