Browse Source

logger object

pagy
pvincent 11 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 # GET /scores
def index def index
@scores = Score.all @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.warn 'this is a warning'
logger.error 'this is an error' logger.error 'this is an error'
logger.debug 'this is a debug message' logger.debug 'this is a debug message'

Loading…
Cancel
Save