Skip to content

Commit 0f1c28c

Browse files
committed
[influitive#128] added log example to readme and config explanation
1 parent 99ae4d7 commit 0f1c28c

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,21 @@ Apartment.configure do |config|
338338
end
339339
```
340340

341+
### Additional logging information
342+
343+
Enabling this configuration will output the database that the process is currently connected to as well as which
344+
schemas are in the search path. This can be enabled by setting to true the `active_record_log` configuration.
345+
346+
**Example log output:**
347+
348+
<img src="documentation/images/log_example.png">
349+
350+
```ruby
351+
Apartment.configure do |config|
352+
active_record_log = true
353+
end
354+
```
355+
341356
### Excluding models
342357

343358
If you have some models that should always access the 'public' tenant, you can specify this by configuring Apartment using `Apartment.configure`. This will yield a config object for you. You can set excluded models like so:
32.6 KB
Loading

0 commit comments

Comments
 (0)