You are here: Home > Using the Rails logger outside of models and controllers in Ruby You can use the Rails logger outside of Rails models in at least version 2.3.X and up of Rails. You might be used to doing the following in your models or controllers: If you make a regular model that doesn’t inherit from ActiveRecord, though, you may see the following error: undefined local variable or method `l