2010-01-19 119 views
2

我想动态更改记录器使用的输出。动态更改Ruby记录器输出

在lib

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

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

迈克尔。

回答