mtn_log4r 1.1.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. checksums.yaml +15 -0
  2. data/doc/content/contact.html +22 -0
  3. data/doc/content/contribute.html +21 -0
  4. data/doc/content/index.html +90 -0
  5. data/doc/content/license.html +56 -0
  6. data/doc/content/manual.html +449 -0
  7. data/doc/dev/README.developers +55 -0
  8. data/doc/dev/checklist +23 -0
  9. data/doc/dev/things-to-do +5 -0
  10. data/doc/images/log4r-logo.png +0 -0
  11. data/doc/images/logo2.png +0 -0
  12. data/doc/log4r.css +111 -0
  13. data/doc/rdoc-log4r.css +696 -0
  14. data/doc/templates/main.html +147 -0
  15. data/examples/README +19 -0
  16. data/examples/ancestors.rb +53 -0
  17. data/examples/chainsaw_settings.xml +7 -0
  18. data/examples/customlevels.rb +34 -0
  19. data/examples/filelog.rb +25 -0
  20. data/examples/fileroll.rb +40 -0
  21. data/examples/gmail.rb +30 -0
  22. data/examples/gmail.yaml +95 -0
  23. data/examples/log4r_yaml.yaml +0 -0
  24. data/examples/logclient.rb +25 -0
  25. data/examples/logserver.rb +18 -0
  26. data/examples/moderate.xml +29 -0
  27. data/examples/moderateconfig.rb +66 -0
  28. data/examples/myformatter.rb +23 -0
  29. data/examples/outofthebox.rb +21 -0
  30. data/examples/rdoc-gen +2 -0
  31. data/examples/rrconfig.xml +63 -0
  32. data/examples/rrsetup.rb +42 -0
  33. data/examples/simpleconfig.rb +39 -0
  34. data/examples/syslogcustom.rb +52 -0
  35. data/examples/xmlconfig.rb +25 -0
  36. data/examples/yaml.rb +30 -0
  37. data/lib/log4r/GDC.rb +41 -0
  38. data/lib/log4r/MDC.rb +59 -0
  39. data/lib/log4r/NDC.rb +86 -0
  40. data/lib/log4r/base.rb +74 -0
  41. data/lib/log4r/config.rb +9 -0
  42. data/lib/log4r/configurator.rb +224 -0
  43. data/lib/log4r/formatter/formatter.rb +109 -0
  44. data/lib/log4r/formatter/log4jxmlformatter.rb +65 -0
  45. data/lib/log4r/formatter/patternformatter.rb +145 -0
  46. data/lib/log4r/lib/drbloader.rb +52 -0
  47. data/lib/log4r/lib/xmlloader.rb +24 -0
  48. data/lib/log4r/logevent.rb +28 -0
  49. data/lib/log4r/logger.rb +199 -0
  50. data/lib/log4r/loggerfactory.rb +89 -0
  51. data/lib/log4r/logserver.rb +28 -0
  52. data/lib/log4r/outputter/consoleoutputters.rb +18 -0
  53. data/lib/log4r/outputter/datefileoutputter.rb +117 -0
  54. data/lib/log4r/outputter/emailoutputter.rb +143 -0
  55. data/lib/log4r/outputter/fileoutputter.rb +56 -0
  56. data/lib/log4r/outputter/iooutputter.rb +55 -0
  57. data/lib/log4r/outputter/outputter.rb +134 -0
  58. data/lib/log4r/outputter/outputterfactory.rb +61 -0
  59. data/lib/log4r/outputter/rabbitoutputter.rb +70 -0
  60. data/lib/log4r/outputter/remoteoutputter.rb +40 -0
  61. data/lib/log4r/outputter/rollingfileoutputter.rb +234 -0
  62. data/lib/log4r/outputter/scribeoutputter.rb +37 -0
  63. data/lib/log4r/outputter/staticoutputter.rb +30 -0
  64. data/lib/log4r/outputter/syslogoutputter.rb +130 -0
  65. data/lib/log4r/outputter/udpoutputter.rb +53 -0
  66. data/lib/log4r/rdoc/GDC +14 -0
  67. data/lib/log4r/rdoc/MDC +16 -0
  68. data/lib/log4r/rdoc/NDC +41 -0
  69. data/lib/log4r/rdoc/configurator +243 -0
  70. data/lib/log4r/rdoc/emailoutputter +103 -0
  71. data/lib/log4r/rdoc/formatter +39 -0
  72. data/lib/log4r/rdoc/log4jxmlformatter +21 -0
  73. data/lib/log4r/rdoc/log4r +89 -0
  74. data/lib/log4r/rdoc/logger +175 -0
  75. data/lib/log4r/rdoc/logserver +85 -0
  76. data/lib/log4r/rdoc/outputter +108 -0
  77. data/lib/log4r/rdoc/patternformatter +128 -0
  78. data/lib/log4r/rdoc/scribeoutputter +16 -0
  79. data/lib/log4r/rdoc/syslogoutputter +29 -0
  80. data/lib/log4r/rdoc/win32eventoutputter +7 -0
  81. data/lib/log4r/rdoc/yamlconfigurator +20 -0
  82. data/lib/log4r/repository.rb +88 -0
  83. data/lib/log4r/staticlogger.rb +49 -0
  84. data/lib/log4r/version.rb +4 -0
  85. data/lib/log4r/yamlconfigurator.rb +198 -0
  86. data/lib/log4r.rb +18 -0
  87. data/tests/README +10 -0
  88. data/tests/testGDC.rb +24 -0
  89. data/tests/testMDC.rb +40 -0
  90. data/tests/testNDC.rb +25 -0
  91. data/tests/test_helper.rb +12 -0
  92. data/tests/testall.rb +6 -0
  93. data/tests/testbase.rb +48 -0
  94. data/tests/testchainsaw.rb +42 -0
  95. data/tests/testconf.xml +37 -0
  96. data/tests/testcustom.rb +30 -0
  97. data/tests/testformatter.rb +31 -0
  98. data/tests/testlogger.rb +200 -0
  99. data/tests/testoutputter.rb +143 -0
  100. data/tests/testpatternformatter.rb +76 -0
  101. data/tests/testthreads.rb +31 -0
  102. data/tests/testxmlconf.rb +48 -0
  103. data/tests/testyaml.rb +39 -0
  104. data/tests/testyaml_arrays.yaml +25 -0
  105. data/tests/testyaml_injection.yaml +22 -0
  106. metadata +193 -0
@@ -0,0 +1,55 @@
1
+ This document introduces interested developers to log4r development. It also
2
+ reminds us how things work here. :-)
3
+
4
+ RubyForge Site
5
+ --------------
6
+
7
+ Log4r is hosted on RubyForge. It was hosted on SourceForge up to 1.0.5.
8
+
9
+ Project Full Name: Log4r
10
+ Project Unix Name: log4r
11
+ CVS Server: cvs.log4r.rubyforge.org
12
+ Shell/Web Server: log4r.rubyforge.org
13
+ Path to web pages: /var/www/gforge-projects/log4r/
14
+
15
+
16
+ HTML manual and site
17
+ --------------------
18
+
19
+ This is pieced together with a homebrewed content-template system.
20
+ doc/content has the actual contents, which are just three lines of metadata
21
+ and a bunch of <tr>s that are incorporated into a template. The only template
22
+ is doc/templates/main.html which is universal. To test the changes, run
23
+ bin/makedoc.rb directly and check the results in doc/index.html.
24
+
25
+
26
+ Testing RDoc
27
+ ------------
28
+ Either run bin/makerdoc.rb directly or,
29
+
30
+ cd lib/
31
+ rdoc --op /tmp/rdoc --template kilmer --main log4r.rb
32
+
33
+
34
+ Automated Builds
35
+ ----------------
36
+
37
+ The build system is automated and relies on CVS and ruby. There are three main
38
+ things that go on during build:
39
+
40
+ 1) bin/makedist.rb checks out a build to prepare for distribution and calls
41
+ other build scripts, then assembles the distribution into tgz and zip balls
42
+
43
+ 2) HTML manual is constructed by bin/makehtml.rb, called from makedist.rb
44
+
45
+ 3) RDoc is constructed by bin/makerdoc.rb, called from makedist.rb
46
+
47
+ All system variables and configurable options are in bin/devconfig.rb.
48
+
49
+ Essentially, the only thing that needs to be done to build packages for
50
+ distribution is,
51
+
52
+ ruby makedist.rb <version-number>
53
+
54
+ The results are one tarball, one zip file of the same, and one documentation
55
+ tarball ready to be placed on the log4r home page.
data/doc/dev/checklist ADDED
@@ -0,0 +1,23 @@
1
+ Release checklist:
2
+
3
+ * DON'T FORGET: change install.rb when new lib/ files are added
4
+ * Update the log4r.gemspec
5
+ * Update the changelog
6
+ * Update the README
7
+ * Change any INSTALL instructions
8
+ * Update the manuals and HTML
9
+ * Modify what should not appear in the release (bin/prune.rb)
10
+ * Run makedist.rb and check the integrity of the resulting files
11
+ - Test installs
12
+ - Run the unit tests (cd tests; ruby testall.rb)
13
+ - Run all the examples
14
+ - Browse the docs
15
+
16
+
17
+ Who to Tell:
18
+
19
+ * RubyGems distribution (to upload gem)
20
+ * ruby-talk mailing list
21
+ * RAA
22
+ * RubyForge news
23
+ * RubyForge email notification of new file releases
@@ -0,0 +1,5 @@
1
+ * Add gem generation to the automated build process
2
+ * Rewrite the RDoc in third person (no "you"s) and be more formal
3
+ * Warn of any remaining parameters from XML and YAML in the Configurators
4
+ * Refactor YamlConfigurator and Configurator a bit: XML shouldn't sound
5
+ like the prefered option
Binary file
Binary file
data/doc/log4r.css ADDED
@@ -0,0 +1,111 @@
1
+ body {
2
+ background-color: #FFFFFF;
3
+ font-family:sans-serif;
4
+ }
5
+
6
+ a:link { color:#014DA3 }
7
+ a:active { color:#AA0000 }
8
+ a:visited { color:#014DA3 }
9
+ a:hoover { color:#AA0000 }
10
+
11
+ .example {
12
+ font-family: monospace;
13
+ border:1px solid #007;
14
+ background:#FFFFFF;
15
+ margin:1em;
16
+ }
17
+
18
+ pre.box {
19
+ margin:0px 1em 1em 1em;
20
+ color:#AA0000;
21
+ }
22
+
23
+ .menu {
24
+ font-family:sans-serif;
25
+ font-size:10px;
26
+ border-left: 1px solid #AA0000;
27
+ border-right: 1px solid #AA0000;
28
+ border-bottom: 1px solid #AA0000;
29
+ background:#EEEEEE;
30
+ color:#AA0000;
31
+ }
32
+
33
+ .menutitle {
34
+ font-family:sans-serif;
35
+ font-size:medium;
36
+ color:#FFFFFF;
37
+ font-weight:bold;
38
+ background:#AA0000;
39
+ border-right: 1px solid #AA0000;
40
+ border-left: 1px solid #AA0000;
41
+ border-top: 1px solid #AA0000;
42
+ border-bottom: 1px solid #AA0000;
43
+ }
44
+
45
+ .menubuff {
46
+ font-family:sans-serif;
47
+ font-size:1px;
48
+ color:#000000;
49
+ border-left: 1px solid #AA0000;
50
+ border-right: 1px solid #AA0000;
51
+ font-weight:bold;
52
+ background-color: #99CCFF;
53
+ height:5;
54
+ padding-bottom: 0;
55
+ }
56
+
57
+ .contentbuff {
58
+ font-family:sans-serif;
59
+ font-size:10px;
60
+ border-left: 1px solid #AA0000;
61
+ border-right: 1px solid #AA0000;
62
+ font-weight:bold;
63
+ background-color: #99CCFF;
64
+ height:5;
65
+ padding-bottom: 0;
66
+ }
67
+
68
+ .header {
69
+ font-family:sans-serif;
70
+ color:#AA0000;
71
+ }
72
+
73
+ .content {
74
+ font-family:sans-serif;
75
+ font-size:medium;
76
+ color:#000000;
77
+ background:#EEEEEE;
78
+ border-right: 2px solid #AA0000;
79
+ border-left: 2px solid #AA0000;
80
+ border-bottom: 2px solid #AA0000;
81
+ padding-bottom: 5;
82
+ padding-right: 5;
83
+ padding-left: 5;
84
+ padding-top: 0;
85
+ }
86
+ .contenttitle {
87
+ font-family:sans-serif;
88
+ font-size:medium;
89
+ color:#FFFFFF;
90
+ font-weight:bold;
91
+ background-color:#AA0000;
92
+ border-left: 2px solid #AA0000;
93
+ border-top: 1px solid #AA0000;
94
+ border-right: 2px solid #AA0000;
95
+ padding: 2;
96
+ }
97
+
98
+ .contentbuff {
99
+ font-family:sans-serif;
100
+ font-size:10px;
101
+ color:#014DA3;
102
+ border-left: 2px solid #AA0000;
103
+ border-right: 2px solid #AA0000;
104
+ font-weight:bold;
105
+ background-color:#99CCFF;
106
+ height:13;
107
+ padding-bottom: 0;
108
+ }
109
+
110
+ br { padding-bottom: 200 }
111
+