MickaelFM
MickaelFM

Reputation: 907

Change Ruby Logger output dynamically

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.

Upvotes: 2

Views: 545

Answers (1)

andrykonchin
andrykonchin

Reputation: 2517

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

Upvotes: 1

Related Questions