I am trying to find out what are the differences between log levels. If I do:
logger.warn 'TEST LOGGER'
and
logger.debug 'TEST LOGGER'
I see the exact same information in my log file. What is the difference between each of those levels?
As MrYoshiji said in the comments... log levels are just used to determine which statements should appear in the logs based on the config.log_level
settings. The Rails Guide on Log Levels explains it well... Here is a screenshot of the relevant information:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.