/src/lib/log/cluster.rc

http://github.com/tybor/Liberty · Windows Resource-Definition Script · 46 lines · 42 code · 4 blank · 0 comment · 0 complexity · fc8df6199a88a455ab0e30e5ab3fdace MD5 · raw file

  1. cluster LOG
  2. --
  3. -- Logging framework.
  4. --
  5. -- Looks for a default configuration file named "log.rc" in the process's working directory.
  6. --
  7. -- Example of log.rc file:
  8. --
  9. -- --8<--------
  10. --
  11. -- log configuration
  12. --
  13. -- root MY_APP -- note that the names of the loggers are the names of the classes that use them.
  14. --
  15. -- output
  16. -- out_debug is file "/var/log/myapp-trace.log"
  17. -- out_events is file "/var/log/myapp-events.log"
  18. --
  19. -- logger
  20. -- MY_APP is
  21. -- output out_events
  22. -- level error
  23. -- end
  24. --
  25. -- MY_TRACED_CLASS is
  26. -- like MY_APP
  27. -- output out_debug
  28. -- level trace
  29. -- end
  30. --
  31. -- end
  32. --
  33. -- -------->8--
  34. --
  35. version "1.0"
  36. locations
  37. "."
  38. "conf"
  39. needs
  40. KERNEL
  41. PARSE
  42. end