Module: RJack::SLF4J
- Defined in:
- lib/jlogger.rb
Class Method Summary collapse
Class Method Details
.to_log_name(classobject) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/jlogger.rb', line 8 def self.to_log_name classobject classline = [] parent_is_a_logback = false loggingname = 'none' ancestors = [] classobject.ancestors.each do |c| c = c.to_s if c == "JLogger::Simple" break end if c == "Object" break; end classline.unshift c.split('::') end loggingname = classline.flatten.join('.') return loggingname end |