Browse Source

logger object

pagy
pvincent 9 months ago
parent
commit
76bcf43788
  1. 2
      app/controllers/scores_controller.rb

2
app/controllers/scores_controller.rb

@ -5,7 +5,7 @@ class ScoresController < ApplicationController
# GET /scores
def index
@scores = Score.all
logger.info 'this is an information'
logger.info 'this is an information', { 'one': 1, 'two': 2 }
logger.warn 'this is a warning'
logger.error 'this is an error'
logger.debug 'this is a debug message'

Loading…
Cancel
Save