Sha256: 87e29e151c821220b5d45bba17557d5b20bc39392d5b1ed7216f390596fd6fd5

Contents?: true

Size: 594 Bytes

Versions: 6

Compression:

Stored size: 594 Bytes

Contents

[Back to Guides](../README.md)

# Logging

The default logger in a Rails application will be `Rails.logger`.

When there is no `Rails.logger`, the default logger is an instance of
`ActiveSupport::TaggedLogging` logging to STDOUT.

You may customize the logger in an initializer, for example:

```ruby
ActiveModelSerializers.logger = Logger.new(STDOUT)
```

You can also disable the logger, just put this in `config/initializers/active_model_serializers.rb`:

```ruby
require 'active_model_serializers'
ActiveSupport::Notifications.unsubscribe(ActiveModelSerializers::Logging::RENDER_EVENT)
```

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
active_model_serializers_custom-0.10.90 docs/general/logging.md
active_model_serializers-0.10.9 docs/general/logging.md
active_model_serializers-0.10.8 docs/general/logging.md
active_model_serializers-0.10.7 docs/general/logging.md
active_model_serializers-0.10.6 docs/general/logging.md
active_model_serializers-0.10.5 docs/general/logging.md