Class: SpinelKit::Log
- Inherits:
-
Object
- Object
- SpinelKit::Log
- Defined in:
- sig/spinel_kit/log.rbs
Instance Attribute Summary collapse
-
#file_path ⇒ String
Returns the value of attribute file_path.
-
#min_level ⇒ String
Returns the value of attribute min_level.
Class Method Summary collapse
Instance Method Summary collapse
- #debug ⇒ void
- #error ⇒ void
- #format_line ⇒ String
- #info ⇒ void
-
#initialize ⇒ Log
constructor
A new instance of Log.
- #log ⇒ void
- #set_level ⇒ String
- #should_log? ⇒ Boolean
- #to_file ⇒ String
- #to_stderr ⇒ String
- #warn ⇒ void
Constructor Details
#initialize ⇒ Log
Returns a new instance of Log.
6 |
# File 'sig/spinel_kit/log.rbs', line 6
def initialize: () -> void
|
Instance Attribute Details
#file_path ⇒ String
Returns the value of attribute file_path.
4 5 6 |
# File 'sig/spinel_kit/log.rbs', line 4 def file_path @file_path end |
#min_level ⇒ String
Returns the value of attribute min_level.
3 4 5 |
# File 'sig/spinel_kit/log.rbs', line 3 def min_level @min_level end |
Class Method Details
.level_value ⇒ Integer
16 |
# File 'sig/spinel_kit/log.rbs', line 16
def self.level_value: (String name) -> Integer
|
Instance Method Details
#debug ⇒ void
This method returns an undefined value.
10 |
# File 'sig/spinel_kit/log.rbs', line 10
def debug: (String msg) -> void
|
#error ⇒ void
This method returns an undefined value.
13 |
# File 'sig/spinel_kit/log.rbs', line 13
def error: (String msg) -> void
|
#format_line ⇒ String
17 |
# File 'sig/spinel_kit/log.rbs', line 17
def format_line: (String level, String msg) -> String
|
#info ⇒ void
This method returns an undefined value.
11 |
# File 'sig/spinel_kit/log.rbs', line 11
def info: (String msg) -> void
|
#log ⇒ void
This method returns an undefined value.
14 |
# File 'sig/spinel_kit/log.rbs', line 14
def log: (String level, String msg) -> void
|
#set_level ⇒ String
7 |
# File 'sig/spinel_kit/log.rbs', line 7
def set_level: (String name) -> String
|
#should_log? ⇒ Boolean
15 |
# File 'sig/spinel_kit/log.rbs', line 15
def should_log?: (String level) -> bool
|
#to_file ⇒ String
8 |
# File 'sig/spinel_kit/log.rbs', line 8
def to_file: (String path) -> String
|
#to_stderr ⇒ String
9 |
# File 'sig/spinel_kit/log.rbs', line 9
def to_stderr: () -> String
|
#warn ⇒ void
This method returns an undefined value.
12 |
# File 'sig/spinel_kit/log.rbs', line 12
def warn: (String msg) -> void
|