2

I'd like to change dynamically the output used by the Logger.

in the lib:

@log = Logger.new(p, 10, 1024000)

in the main class:

mylib_instance.log.set_log(STDOUT) # something like that, but this does not work

Mickael.

1 Answer 1

1

As I know you can't do this with standart Logger, but you can find this in Log4r logger

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.