Module: GitCompound::Logger
- Extended by:
- Logger
- Included in:
- Logger
- Defined in:
- lib/git_compound.rb,
lib/git_compound/logger.rb,
lib/git_compound/logger/colors.rb,
lib/git_compound/logger/debugger.rb
Overview
Defined Under Namespace
Modules: ClassMethods, Colors, Debugger
Instance Method Summary
collapse
Instance Method Details
#colors ⇒ Object
20
21
22
|
# File 'lib/git_compound/logger.rb', line 20
def colors
@colors.nil? ? true : @colors
end
|
#colors=(value) ⇒ Object
16
17
18
|
# File 'lib/git_compound/logger.rb', line 16
def colors=(value)
String.disable_colors = !(@colors = value)
end
|
#debug(debug_message) ⇒ Object
29
30
31
|
# File 'lib/git_compound/logger.rb', line 29
def debug(debug_message)
log debug_message.cyan
end
|
#error(error_message) ⇒ Object
41
42
43
|
# File 'lib/git_compound/logger.rb', line 41
def error(error_message)
log error_message.on_red.white.bold
end
|
#info(information_message) ⇒ Object
33
34
35
|
# File 'lib/git_compound/logger.rb', line 33
def info(information_message)
log information_message
end
|
#inline(inline_message) ⇒ Object
24
25
26
27
|
# File 'lib/git_compound/logger.rb', line 24
def inline(inline_message)
print inline_message
inline_message
end
|
#verbose ⇒ Object
12
13
14
|
# File 'lib/git_compound/logger.rb', line 12
def verbose
@verbose.nil? ? false : @verbose
end
|
#verbose=(value) ⇒ Object
7
8
9
10
|
# File 'lib/git_compound/logger.rb', line 7
def verbose=(value)
load_debug_messages if value
@verbose = value && true
end
|
#warn(warning_message) ⇒ Object
37
38
39
|
# File 'lib/git_compound/logger.rb', line 37
def warn(warning_message)
log warning_message.red.bold
end
|