Guest User

Untitled

a guest
Apr 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. Output:
  2. Class: Log4r::Logger
  3. /usr/lib/ruby/1.8/logger.rb:314:in `add': undefined method `<' for #<Log4r::FileOutputter:0xb764ced8> (NoMethodError)
  4.  
  5.  
  6. Kod:
  7. agentlog = Log4r::Logger.new("AgentLog#{@name}")
  8. puts agentlog.class
  9. agentlog.add FileOutputter.new("FO#{@name}", :filename=>"/opt/cas/logs/Agent#{@name}.log",:trunc=>false)
Add Comment
Please, Sign In to add comment