Class: SchwabMCP::Logger
- Inherits:
-
Object
- Object
- SchwabMCP::Logger
- Defined in:
- lib/schwab_mcp/logger.rb
Class Method Summary collapse
- .debug(message) ⇒ Object
- .error(message) ⇒ Object
- .fatal(message) ⇒ Object
- .info(message) ⇒ Object
- .instance ⇒ Object
- .warn(message) ⇒ Object
Class Method Details
.debug(message) ⇒ Object
16 17 18 |
# File 'lib/schwab_mcp/logger.rb', line 16 def debug() instance.debug(Redactor.redact_formatted_text()) if debug_enabled? end |
.error(message) ⇒ Object
28 29 30 |
# File 'lib/schwab_mcp/logger.rb', line 28 def error() instance.error(Redactor.redact_formatted_text()) end |
.fatal(message) ⇒ Object
32 33 34 |
# File 'lib/schwab_mcp/logger.rb', line 32 def fatal() instance.fatal(Redactor.redact_formatted_text()) end |
.info(message) ⇒ Object
20 21 22 |
# File 'lib/schwab_mcp/logger.rb', line 20 def info() instance.info(Redactor.redact_formatted_text()) end |
.instance ⇒ Object
12 13 14 |
# File 'lib/schwab_mcp/logger.rb', line 12 def instance @instance ||= create_logger end |
.warn(message) ⇒ Object
24 25 26 |
# File 'lib/schwab_mcp/logger.rb', line 24 def warn() instance.warn(Redactor.redact_formatted_text()) end |