Skip to content

Commit 1461cd5

Browse files
committed
Update logger silencer instructions
1 parent 6a1a458 commit 1461cd5

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,17 @@ The example SqlBypass class is a generic SQL session store. You may
9999
use it as a basis for high-performance database-specific stores.
100100

101101
Please note that you will need to manually include the silencer module to your
102-
custom logger if you are using a logger other than `Logger` and `Syslog::Logger`
103-
and their subclasses:
102+
custom logger if you are using a logger other than `ActiveSupport::Logger` and
103+
its subclasses:
104104

105105
```ruby
106-
MyLogger.send :include, ActiveRecord::SessionStore::Extension::LoggerSilencer
106+
MyLogger.include ActiveSupport::LoggerSilence
107+
```
108+
109+
Or if you are using Rails 5.2 or older:
110+
111+
```ruby
112+
MyLogger.include ::LoggerSilence
107113
```
108114

109115
This silencer is being used to silence the logger and not leaking private

0 commit comments

Comments
 (0)