Class: Appsignal::Utils::IntegrationLogger
- Defined in:
- lib/appsignal/utils/integration_logger.rb
Constant Summary collapse
- MAX_MESSAGE_LENGTH =
2_000
Instance Method Summary collapse
Instance Method Details
#add(severity, message = nil, progname = nil) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/appsignal/utils/integration_logger.rb', line 8 def add(severity, = nil, progname = nil) if .nil? && !block_given? # When called as logger.error("msg"), the message is in progname progname = (progname) elsif = () elsif block_given? = (yield) end super end |