mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-05 00:02:38 -04:00
when true, text passed to log messages considered sensitive (wrapped in a +#log_redact+ call) will be logged as "[REDACTED}"
17 lines
467 B
Plaintext
17 lines
467 B
Plaintext
module HTTPX
|
|
interface _IOLogger
|
|
def <<: (string?) -> void
|
|
end
|
|
|
|
module Loggable
|
|
USE_DEBUG_LOGS: bool
|
|
|
|
COLORS: Hash[Symbol, Integer]
|
|
|
|
def log: (?level: Integer?, ?color: Symbol?, ?debug_level: Integer, ?debug: _IOLogger?) { () -> String } -> void
|
|
|
|
def log_exception: (Exception error, ?level: Integer, ?color: Symbol, ?debug_level: Integer, ?debug: _IOLogger?) -> void
|
|
|
|
def log_redact: (_ToS text, ?bool should_redact) -> String
|
|
end
|
|
end |