Guest User

Untitled

a guest
May 24th, 2018
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. diff --git a/examples/log4r_yaml.yaml b/examples/log4r_yaml.yaml
  2. index ab3005f..11b7ea6 100644
  3. --- a/examples/log4r_yaml.yaml
  4. +++ b/examples/log4r_yaml.yaml
  5. @@ -71,10 +71,14 @@ log4r_config:
  6. - type : EmailOutputter
  7. name : email
  8. level : FAT
  9. - server : localhost
  10. + server : smtp.gmail.com
  11. + port : '587'
  12. subject : 'Message from #{PN}:'
  13. - from : test@localhost
  14. - to : anhu@localhost
  15. + from : nitayj@gmail.com
  16. + to : nitayj@gmail.com
  17. + acct : nitayj@gmail.com
  18. + passwd : xxxxxx
  19. + authtype : plain
  20. immediate_at: FAT
  21. formatfirst : 'true'
  22. formatter :
  23. diff --git a/examples/yaml.rb b/examples/yaml.rb
  24. index 0d5072a..59c5d90 100644
  25. --- a/examples/yaml.rb
  26. +++ b/examples/yaml.rb
  27. @@ -25,6 +25,6 @@ def do_logging(log)
  28. end
  29.  
  30. # turn off the email outputter
  31. -Outputter['email'].level = OFF
  32. +Outputter['email'].level = WRN
  33. # the other two outputters log to stderr and a timestamped file in ./logs
  34. do_logging( Logger['mylogger'])
Add Comment
Please, Sign In to add comment