Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add logging section to Readme #1209

Merged
merged 2 commits into from

3 participants

@deiga

Clarifies how to disable the logging if needed

README.md
@@ -532,6 +532,20 @@ class User < ActiveRecord::Base
end
```
+Logging
+----------
+
+By default Paperclip outputs logging according to your logger level. If you want to disable logging (f.ex. in test environment) add this in to your environments configuration:
@djcp
djcp added a note

Tiny language tweaks:

If you want to disable logging (e.g. during testing) add this in to your environment's configuration:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
README.md
@@ -532,6 +532,20 @@ class User < ActiveRecord::Base
end
```
+Logging
+----------
+
+By default Paperclip outputs logging according to your logger level. If you want to disable logging (f.ex. in test environment) add this in to your environments configuration:
+```ruby
+App.configure do
@djcp
djcp added a note

Might be nice to have this look more like what you'd see in config/environments, so something like:

Your::Application.configure do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@deiga deiga Update README.md
Implement djcp's tweaks
e8777d5
@jyurek jyurek merged commit f6e09a8 into from
@jyurek
Admin

Thanks!

@deiga deiga deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 24, 2013
  1. @deiga

    Add logging section to Readme

    deiga authored
Commits on Mar 30, 2013
  1. @deiga

    Update README.md

    deiga authored
    Implement djcp's tweaks
This page is out of date. Refresh to see the latest.
Showing with 14 additions and 0 deletions.
  1. +14 −0 README.md
View
14 README.md
@@ -532,6 +532,20 @@ class User < ActiveRecord::Base
end
```
+Logging
+----------
+
+By default Paperclip outputs logging according to your logger level. If you want to disable logging (e.g. during testing) add this in to your environment's configuration:
+```ruby
+Your::Application.configure do
+...
+ Paperclip.options[:log] = false
+...
+end
+```
+
+More information in the [rdocs](http://rdoc.info/github/thoughtbot/paperclip/Paperclip.options)
+
Deployment
----------
Something went wrong with that request. Please try again.