Ruby logger log levels
13 Jun 06:50

OK, it seems obvious but I always spend several minutes finding it. So I think it’s a good idea to put it here.

Available log levels:

  • UNKNOWN – No idea. Any help from you Guys?
  • FATAL – Fatal errors and other serious unhappiness.
  • ERROR – An error occurred. Someone should fix this.
  • WARN – A possible error occurred. Someone maybe should fix this.
  • INFO – In case you were wondering…
  • DEBUG – The more sophisticated version of puts style debugging


Rails logging best practises: