Class: VidazingLogger::Appenders::ErrorLog Private

Inherits:
Log
  • Object
show all
Defined in:
lib/vidazing_logger/appenders/log/error.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.

Appender writing to 'logs/error.log'

Since:

  • 0.1.0

Instance Attribute Summary

Attributes inherited from Log

#log_dir

Attributes inherited from Basic

#appender

Instance Method Summary collapse

Methods inherited from Log

#log_path

Constructor Details

#initialize(log_dir:) ⇒ ErrorLog

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 ErrorLog

Since:

  • 0.1.0



13
14
15
16
17
18
# File 'lib/vidazing_logger/appenders/log/error.rb', line 13

def initialize(log_dir:)
  @color_scheme_id = VidazingLogger::Colors::ErrorColorScheme.id
  @filter = VidazingLogger::Filters::Error.new.filter

  super(log_dir: log_dir, name: 'error')
end