Class: VidazingLogger::Appenders::LoggingGemAdapter Private
- Inherits:
-
Object
- Object
- VidazingLogger::Appenders::LoggingGemAdapter
- Defined in:
- lib/vidazing_logger/appenders/logging_gem_adapter.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Uses an appender
Instance Attribute Summary collapse
- #logging_appender ⇒ Object readonly private
- #vidazing_appender ⇒ Object readonly private
Class Method Summary collapse
- .rolling_file(vidazing_appender:) ⇒ Object private
- .stderr(vidazing_appender:) ⇒ Object private
- .stdout(vidazing_appender:) ⇒ Object private
Instance Method Summary collapse
-
#initialize(type:, vidazing_appender:) ⇒ LoggingGemAdapter
constructor
private
A new instance of LoggingGemAdapter.
Constructor Details
#initialize(type:, vidazing_appender:) ⇒ LoggingGemAdapter
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of LoggingGemAdapter.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/vidazing_logger/appenders/logging_gem_adapter.rb', line 16 def initialize(type:, vidazing_appender:) @vidazing_appender = vidazing_appender logging_filter = create_logging_filter logging_layout = create_logging_layout = \ filter: logging_filter, layout: logging_layout @logging_appender = create_logging_appender \ type: type, name: vidazing_appender.name, options: end |
Instance Attribute Details
#logging_appender ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
14 15 16 |
# File 'lib/vidazing_logger/appenders/logging_gem_adapter.rb', line 14 def logging_appender @logging_appender end |
#vidazing_appender ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
14 15 16 |
# File 'lib/vidazing_logger/appenders/logging_gem_adapter.rb', line 14 def vidazing_appender @vidazing_appender end |
Class Method Details
.rolling_file(vidazing_appender:) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
106 107 108 109 |
# File 'lib/vidazing_logger/appenders/logging_gem_adapter.rb', line 106 def rolling_file(vidazing_appender:) LoggingGemAdapter.new(type: Type::ID_ROLLING_FILE, vidazing_appender: vidazing_appender) end |
.stderr(vidazing_appender:) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
101 102 103 104 |
# File 'lib/vidazing_logger/appenders/logging_gem_adapter.rb', line 101 def stderr(vidazing_appender:) LoggingGemAdapter.new(type: Type::ID_STDERR, vidazing_appender: vidazing_appender) end |
.stdout(vidazing_appender:) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
96 97 98 99 |
# File 'lib/vidazing_logger/appenders/logging_gem_adapter.rb', line 96 def stdout(vidazing_appender:) LoggingGemAdapter.new(type: Type::ID_STDOUT, vidazing_appender: vidazing_appender) end |