Closed arielvalentin closed 5 years ago
When trying to configure logback system I am unable to use the named hierarchy feature because they use dots, however Ruby class names have double colons:
ruby @log ||= Java::OrgSlf4j::LoggerFactory.get_logger(self.name)
ruby
One way to fix this is to substitute colons with dots: ``` ruby @log ||= Java::OrgSlf4j::LoggerFactory.get_logger(self.name.gsub(/::/,'.'))
Then then one could register the loggers like this:
xml
Again(!) thanks for the hint! relates to #110
When trying to configure logback system I am unable to use the named hierarchy feature because they use dots, however Ruby class names have double colons:
ruby
@log ||= Java::OrgSlf4j::LoggerFactory.get_logger(self.name)Then then one could register the loggers like this:
xml