TwP / logging

A flexible logging library for use in Ruby programs based on the design of Java's log4j library.
https://rubygems.org/gems/logging
MIT License
530 stars 101 forks source link

wrong number of arguments #202

Closed UnConundrum closed 3 years ago

UnConundrum commented 5 years ago

New user with basic setup. We have a class called Bill. Within that class I have added:

require 'logging' attr_reader :log def initialize() @log = Logging.logger[self]; end

When I do a Bill.new I get:

ArgumentError: wrong number of arguments (given 1, expected 0)

We are using Rails 5.2.1 and Ruby 2.5.0p0 Appreciate any suggestions.

TwP commented 5 years ago

I'm afraid there is not enough information here for me to give you an intelligent suggestions. Do you have a complete stack trace you can share? That might contain some helpful information.