-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
HttpLog.configure do |config| | ||
# Enable or disable all logging | ||
config.enabled = true | ||
|
||
# You can assign a different logger | ||
config.logger = Rails.logger | ||
config.severity = Logger::Severity::DEBUG | ||
|
||
# Tweak which parts of the HTTP cycle to log... | ||
config.log_connect = true | ||
config.log_request = true | ||
config.log_headers = false | ||
config.log_data = true | ||
config.log_status = true | ||
config.log_response = true | ||
config.log_benchmark = true | ||
|
||
# ...or log all request as a single line by setting this to `true` | ||
config.compact_log = false | ||
|
||
# You can also log in JSON format | ||
config.json_log = false | ||
|
||
# Prettify the output - see below | ||
config.color = false | ||
|
||
# Limit logging based on URL patterns | ||
config.url_whitelist_pattern = nil | ||
config.url_blacklist_pattern = nil | ||
|
||
# Mask the values of sensitive requestparameters | ||
config.filter_parameters = %w[password] | ||
end |