log4r 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. data/README +3 -3
  2. data/Rakefile +2 -2
  3. data/doc/rdoc/Log4r.html +519 -0
  4. data/doc/rdoc/Log4r/BasicFormatter.html +388 -0
  5. data/doc/rdoc/Log4r/ConfigError.html +225 -0
  6. data/doc/rdoc/Log4r/Configurator.html +1068 -0
  7. data/doc/rdoc/Log4r/DateFileOutputter.html +479 -0
  8. data/doc/rdoc/Log4r/DefaultFormatter.html +223 -0
  9. data/doc/rdoc/Log4r/EmailOutputter.html +654 -0
  10. data/doc/rdoc/Log4r/FileOutputter.html +346 -0
  11. data/doc/rdoc/Log4r/Formatter.html +309 -0
  12. data/doc/rdoc/Log4r/GDC.html +346 -0
  13. data/doc/rdoc/Log4r/GDC_rb.html +80 -0
  14. data/doc/rdoc/Log4r/IOOutputter.html +410 -0
  15. data/doc/rdoc/Log4r/Log4jXmlFormatter.html +337 -0
  16. data/doc/rdoc/Log4r/Log4rConfig.html +211 -0
  17. data/doc/rdoc/Log4r/Log4rTools.html +388 -0
  18. data/doc/rdoc/Log4r/LogEvent.html +378 -0
  19. data/doc/rdoc/Log4r/LogServer.html +340 -0
  20. data/doc/rdoc/Log4r/Logger.html +1150 -0
  21. data/doc/rdoc/Log4r/Logger/LoggerFactory.html +218 -0
  22. data/doc/rdoc/Log4r/Logger/Repository.html +225 -0
  23. data/doc/rdoc/Log4r/MDC.html +424 -0
  24. data/doc/rdoc/Log4r/MDC_rb.html +83 -0
  25. data/doc/rdoc/Log4r/NDC.html +632 -0
  26. data/doc/rdoc/Log4r/NDC_rb.html +110 -0
  27. data/doc/rdoc/Log4r/ObjectFormatter.html +280 -0
  28. data/doc/rdoc/Log4r/Outputter.html +934 -0
  29. data/doc/rdoc/Log4r/Outputter/OutputterFactory.html +218 -0
  30. data/doc/rdoc/Log4r/Outputter/consoleoutputters_rb.html +57 -0
  31. data/doc/rdoc/Log4r/Outputter/datefileoutputter_rb.html +93 -0
  32. data/doc/rdoc/Log4r/Outputter/emailoutputter_rb.html +179 -0
  33. data/doc/rdoc/Log4r/Outputter/fileoutputter_rb.html +64 -0
  34. data/doc/rdoc/Log4r/Outputter/iooutputter_rb.html +59 -0
  35. data/doc/rdoc/Log4r/Outputter/outputter_rb.html +222 -0
  36. data/doc/rdoc/Log4r/Outputter/outputterfactory_rb.html +62 -0
  37. data/doc/rdoc/Log4r/Outputter/remoteoutputter_rb.html +59 -0
  38. data/doc/rdoc/Log4r/Outputter/rollingfileoutputter_rb.html +66 -0
  39. data/doc/rdoc/Log4r/Outputter/staticoutputter_rb.html +55 -0
  40. data/doc/rdoc/Log4r/Outputter/syslogoutputter_rb.html +110 -0
  41. data/doc/rdoc/Log4r/Outputter/udpoutputter_rb.html +220 -0
  42. data/doc/rdoc/Log4r/PatternFormatter.html +404 -0
  43. data/doc/rdoc/Log4r/ROMPClient.html +211 -0
  44. data/doc/rdoc/Log4r/ROMPServer.html +211 -0
  45. data/doc/rdoc/Log4r/RemoteOutputter.html +402 -0
  46. data/doc/rdoc/Log4r/RollingFileOutputter.html +551 -0
  47. data/doc/rdoc/Log4r/RootLogger.html +530 -0
  48. data/doc/rdoc/Log4r/SimpleFormatter.html +276 -0
  49. data/doc/rdoc/Log4r/StderrOutputter.html +268 -0
  50. data/doc/rdoc/Log4r/StdoutOutputter.html +268 -0
  51. data/doc/rdoc/Log4r/SyslogOutputter.html +551 -0
  52. data/doc/rdoc/Log4r/UDPOutputter.html +379 -0
  53. data/doc/rdoc/Log4r/YamlConfigurator.html +966 -0
  54. data/doc/rdoc/Log4r/base_rb.html +57 -0
  55. data/doc/rdoc/Log4r/config_rb.html +122 -0
  56. data/doc/rdoc/Log4r/configurator_rb.html +370 -0
  57. data/doc/rdoc/Log4r/formatter/formatter_rb.html +121 -0
  58. data/doc/rdoc/Log4r/formatter/log4jxmlformatter_rb.html +64 -0
  59. data/doc/rdoc/Log4r/formatter/patternformatter_rb.html +239 -0
  60. data/doc/rdoc/Log4r/lib/drbloader_rb.html +57 -0
  61. data/doc/rdoc/Log4r/lib/xmlloader_rb.html +57 -0
  62. data/doc/rdoc/Log4r/logevent_rb.html +55 -0
  63. data/doc/rdoc/Log4r/logger_rb.html +293 -0
  64. data/doc/rdoc/Log4r/loggerfactory_rb.html +66 -0
  65. data/doc/rdoc/Log4r/logserver_rb.html +161 -0
  66. data/doc/rdoc/Log4r/rdoc/GDC.html +175 -0
  67. data/doc/rdoc/Log4r/rdoc/MDC.html +178 -0
  68. data/doc/rdoc/Log4r/rdoc/NDC.html +207 -0
  69. data/doc/rdoc/Log4r/rdoc/configurator.html +462 -0
  70. data/doc/rdoc/Log4r/rdoc/emailoutputter.html +279 -0
  71. data/doc/rdoc/Log4r/rdoc/formatter.html +218 -0
  72. data/doc/rdoc/Log4r/rdoc/log4r.html +286 -0
  73. data/doc/rdoc/Log4r/rdoc/logger.html +382 -0
  74. data/doc/rdoc/Log4r/rdoc/logserver.html +265 -0
  75. data/doc/rdoc/Log4r/rdoc/outputter.html +313 -0
  76. data/doc/rdoc/Log4r/rdoc/patternformatter.html +331 -0
  77. data/doc/rdoc/Log4r/rdoc/syslogoutputter.html +197 -0
  78. data/doc/rdoc/Log4r/rdoc/win32eventoutputter.html +165 -0
  79. data/doc/rdoc/Log4r/rdoc/yamlconfigurator.html +187 -0
  80. data/doc/rdoc/Log4r/repository_rb.html +74 -0
  81. data/doc/rdoc/Log4r/staticlogger_rb.html +55 -0
  82. data/doc/rdoc/Log4r/yamlconfigurator_rb.html +95 -0
  83. data/doc/rdoc/REXML.html +211 -0
  84. data/doc/rdoc/created.rid +1 -0
  85. data/doc/rdoc/images/brick.png +0 -0
  86. data/doc/rdoc/images/brick_link.png +0 -0
  87. data/doc/rdoc/images/bug.png +0 -0
  88. data/doc/rdoc/images/bullet_black.png +0 -0
  89. data/doc/rdoc/images/bullet_toggle_minus.png +0 -0
  90. data/doc/rdoc/images/bullet_toggle_plus.png +0 -0
  91. data/doc/rdoc/images/date.png +0 -0
  92. data/doc/rdoc/images/find.png +0 -0
  93. data/doc/rdoc/images/loadingAnimation.gif +0 -0
  94. data/doc/rdoc/images/macFFBgHack.png +0 -0
  95. data/doc/rdoc/images/package.png +0 -0
  96. data/doc/rdoc/images/page_green.png +0 -0
  97. data/doc/rdoc/images/page_white_text.png +0 -0
  98. data/doc/rdoc/images/page_white_width.png +0 -0
  99. data/doc/rdoc/images/plugin.png +0 -0
  100. data/doc/rdoc/images/ruby.png +0 -0
  101. data/doc/rdoc/images/tag_green.png +0 -0
  102. data/doc/rdoc/images/wrench.png +0 -0
  103. data/doc/rdoc/images/wrench_orange.png +0 -0
  104. data/doc/rdoc/images/zoom.png +0 -0
  105. data/doc/rdoc/index.html +585 -0
  106. data/doc/rdoc/js/darkfish.js +116 -0
  107. data/doc/rdoc/js/jquery.js +32 -0
  108. data/doc/rdoc/js/quicksearch.js +114 -0
  109. data/doc/rdoc/js/thickbox-compressed.js +10 -0
  110. data/doc/rdoc/log4r-rdoc.css +696 -0
  111. data/doc/rdoc/log4r_rb.html +207 -0
  112. data/doc/rdoc/rdoc.css +696 -0
  113. data/examples/rdoc-gen +2 -0
  114. data/src/log4r.rb +2 -2
  115. data/src/log4r/formatter/patternformatter.rb +15 -15
  116. data/src/log4r/outputter/udpoutputter.rb +4 -4
  117. data/tests/testchainsaw.rb +1 -1
  118. metadata +123 -8
  119. data/src/log4r/outputter/datefileoutputter.patch +0 -24
  120. data/src/log4r/outputter/diff +0 -14
  121. data/src/log4r/outputter/new-datefileoutputter.rb +0 -117
@@ -0,0 +1,218 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: Log4r::Logger::LoggerFactory</title>
9
+
10
+ <link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../../js/jquery.js" type="text/javascript"
13
+ charset="utf-8"></script>
14
+ <script src="../../js/thickbox-compressed.js" type="text/javascript"
15
+ charset="utf-8"></script>
16
+ <script src="../../js/quicksearch.js" type="text/javascript"
17
+ charset="utf-8"></script>
18
+ <script src="../../js/darkfish.js" type="text/javascript"
19
+ charset="utf-8"></script>
20
+
21
+ </head>
22
+ <body class="class">
23
+
24
+ <div id="metadata">
25
+ <div id="file-metadata">
26
+ <div id="file-list-section" class="section">
27
+ <h3 class="section-header">In Files</h3>
28
+ <div class="section-body">
29
+ <ul>
30
+
31
+ <li><a href="../../log4r/loggerfactory_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
32
+ class="thickbox" title="log4r/loggerfactory.rb">log4r/loggerfactory.rb</a></li>
33
+
34
+ </ul>
35
+ </div>
36
+ </div>
37
+
38
+
39
+ </div>
40
+
41
+ <div id="class-metadata">
42
+
43
+ <!-- Parent Class -->
44
+
45
+ <div id="parent-class-section" class="section">
46
+ <h3 class="section-header">Parent</h3>
47
+
48
+ <p class="link">Object</p>
49
+
50
+ </div>
51
+
52
+
53
+ <!-- Namespace Contents -->
54
+
55
+
56
+ <!-- Method Quickref -->
57
+
58
+
59
+ <!-- Included Modules -->
60
+
61
+ </div>
62
+
63
+ <div id="project-metadata">
64
+
65
+
66
+ <div id="fileindex-section" class="section project-section">
67
+ <h3 class="section-header">Files</h3>
68
+ <ul>
69
+
70
+ <li class="file"><a href="../../log4r/rdoc/GDC.html">GDC</a></li>
71
+
72
+ <li class="file"><a href="../../log4r/rdoc/MDC.html">MDC</a></li>
73
+
74
+ <li class="file"><a href="../../log4r/rdoc/NDC.html">NDC</a></li>
75
+
76
+ <li class="file"><a href="../../log4r/rdoc/configurator.html">configurator</a></li>
77
+
78
+ <li class="file"><a href="../../log4r/rdoc/emailoutputter.html">emailoutputter</a></li>
79
+
80
+ <li class="file"><a href="../../log4r/rdoc/formatter.html">formatter</a></li>
81
+
82
+ <li class="file"><a href="../../log4r/rdoc/log4r.html">log4r</a></li>
83
+
84
+ <li class="file"><a href="../../log4r/rdoc/logger.html">logger</a></li>
85
+
86
+ <li class="file"><a href="../../log4r/rdoc/logserver.html">logserver</a></li>
87
+
88
+ <li class="file"><a href="../../log4r/rdoc/outputter.html">outputter</a></li>
89
+
90
+ <li class="file"><a href="../../log4r/rdoc/patternformatter.html">patternformatter</a></li>
91
+
92
+ <li class="file"><a href="../../log4r/rdoc/syslogoutputter.html">syslogoutputter</a></li>
93
+
94
+ <li class="file"><a href="../../log4r/rdoc/win32eventoutputter.html">win32eventoutputter</a></li>
95
+
96
+ <li class="file"><a href="../../log4r/rdoc/yamlconfigurator.html">yamlconfigurator</a></li>
97
+
98
+ </ul>
99
+ </div>
100
+
101
+
102
+ <div id="classindex-section" class="section project-section">
103
+ <h3 class="section-header">Class Index
104
+ <span class="search-toggle"><img src="../../images/find.png"
105
+ height="16" width="16" alt="[+]"
106
+ title="show/hide quicksearch" /></span></h3>
107
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
108
+ <fieldset>
109
+ <legend>Quicksearch</legend>
110
+ <input type="text" name="quicksearch" value=""
111
+ class="quicksearch-field" />
112
+ </fieldset>
113
+ </form>
114
+
115
+ <ul class="link-list">
116
+
117
+ <li><a href="../../Log4r.html">Log4r</a></li>
118
+
119
+ <li><a href="../../Log4r/BasicFormatter.html">Log4r::BasicFormatter</a></li>
120
+
121
+ <li><a href="../../Log4r/ConfigError.html">Log4r::ConfigError</a></li>
122
+
123
+ <li><a href="../../Log4r/Configurator.html">Log4r::Configurator</a></li>
124
+
125
+ <li><a href="../../Log4r/DateFileOutputter.html">Log4r::DateFileOutputter</a></li>
126
+
127
+ <li><a href="../../Log4r/DefaultFormatter.html">Log4r::DefaultFormatter</a></li>
128
+
129
+ <li><a href="../../Log4r/EmailOutputter.html">Log4r::EmailOutputter</a></li>
130
+
131
+ <li><a href="../../Log4r/FileOutputter.html">Log4r::FileOutputter</a></li>
132
+
133
+ <li><a href="../../Log4r/Formatter.html">Log4r::Formatter</a></li>
134
+
135
+ <li><a href="../../Log4r/GDC.html">Log4r::GDC</a></li>
136
+
137
+ <li><a href="../../Log4r/IOOutputter.html">Log4r::IOOutputter</a></li>
138
+
139
+ <li><a href="../../Log4r/Log4jXmlFormatter.html">Log4r::Log4jXmlFormatter</a></li>
140
+
141
+ <li><a href="../../Log4r/Log4rTools.html">Log4r::Log4rTools</a></li>
142
+
143
+ <li><a href="../../Log4r/LogEvent.html">Log4r::LogEvent</a></li>
144
+
145
+ <li><a href="../../Log4r/LogServer.html">Log4r::LogServer</a></li>
146
+
147
+ <li><a href="../../Log4r/Logger.html">Log4r::Logger</a></li>
148
+
149
+ <li><a href="../../Log4r/MDC.html">Log4r::MDC</a></li>
150
+
151
+ <li><a href="../../Log4r/NDC.html">Log4r::NDC</a></li>
152
+
153
+ <li><a href="../../Log4r/ObjectFormatter.html">Log4r::ObjectFormatter</a></li>
154
+
155
+ <li><a href="../../Log4r/Outputter.html">Log4r::Outputter</a></li>
156
+
157
+ <li><a href="../../Log4r/PatternFormatter.html">Log4r::PatternFormatter</a></li>
158
+
159
+ <li><a href="../../Log4r/RemoteOutputter.html">Log4r::RemoteOutputter</a></li>
160
+
161
+ <li><a href="../../Log4r/RollingFileOutputter.html">Log4r::RollingFileOutputter</a></li>
162
+
163
+ <li><a href="../../Log4r/RootLogger.html">Log4r::RootLogger</a></li>
164
+
165
+ <li><a href="../../Log4r/SimpleFormatter.html">Log4r::SimpleFormatter</a></li>
166
+
167
+ <li><a href="../../Log4r/StderrOutputter.html">Log4r::StderrOutputter</a></li>
168
+
169
+ <li><a href="../../Log4r/StdoutOutputter.html">Log4r::StdoutOutputter</a></li>
170
+
171
+ <li><a href="../../Log4r/SyslogOutputter.html">Log4r::SyslogOutputter</a></li>
172
+
173
+ <li><a href="../../Log4r/UDPOutputter.html">Log4r::UDPOutputter</a></li>
174
+
175
+ <li><a href="../../Log4r/YamlConfigurator.html">Log4r::YamlConfigurator</a></li>
176
+
177
+ </ul>
178
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
179
+ </div>
180
+
181
+
182
+ </div>
183
+ </div>
184
+
185
+ <div id="documentation">
186
+ <h1 class="class">Log4r::Logger::LoggerFactory</h1>
187
+
188
+ <div id="description">
189
+
190
+ </div>
191
+
192
+ <!-- Constants -->
193
+
194
+
195
+ <!-- Attributes -->
196
+
197
+
198
+ <!-- Methods -->
199
+
200
+
201
+ </div>
202
+
203
+
204
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
205
+
206
+ <p>Disabled; run with --debug to generate this.</p>
207
+
208
+ </div>
209
+
210
+ <div id="validator-badges">
211
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
212
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
213
+ Rdoc Generator</a> 1.1.6</small>.</p>
214
+ </div>
215
+
216
+ </body>
217
+ </html>
218
+
@@ -0,0 +1,225 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: Log4r::Logger::Repository</title>
9
+
10
+ <link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../../js/jquery.js" type="text/javascript"
13
+ charset="utf-8"></script>
14
+ <script src="../../js/thickbox-compressed.js" type="text/javascript"
15
+ charset="utf-8"></script>
16
+ <script src="../../js/quicksearch.js" type="text/javascript"
17
+ charset="utf-8"></script>
18
+ <script src="../../js/darkfish.js" type="text/javascript"
19
+ charset="utf-8"></script>
20
+
21
+ </head>
22
+ <body class="class">
23
+
24
+ <div id="metadata">
25
+ <div id="file-metadata">
26
+ <div id="file-list-section" class="section">
27
+ <h3 class="section-header">In Files</h3>
28
+ <div class="section-body">
29
+ <ul>
30
+
31
+ <li><a href="../../log4r/repository_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
32
+ class="thickbox" title="log4r/repository.rb">log4r/repository.rb</a></li>
33
+
34
+ </ul>
35
+ </div>
36
+ </div>
37
+
38
+
39
+ </div>
40
+
41
+ <div id="class-metadata">
42
+
43
+ <!-- Parent Class -->
44
+
45
+ <div id="parent-class-section" class="section">
46
+ <h3 class="section-header">Parent</h3>
47
+
48
+ <p class="link">Object</p>
49
+
50
+ </div>
51
+
52
+
53
+ <!-- Namespace Contents -->
54
+
55
+
56
+ <!-- Method Quickref -->
57
+
58
+
59
+ <!-- Included Modules -->
60
+
61
+ </div>
62
+
63
+ <div id="project-metadata">
64
+
65
+
66
+ <div id="fileindex-section" class="section project-section">
67
+ <h3 class="section-header">Files</h3>
68
+ <ul>
69
+
70
+ <li class="file"><a href="../../log4r/rdoc/GDC.html">GDC</a></li>
71
+
72
+ <li class="file"><a href="../../log4r/rdoc/MDC.html">MDC</a></li>
73
+
74
+ <li class="file"><a href="../../log4r/rdoc/NDC.html">NDC</a></li>
75
+
76
+ <li class="file"><a href="../../log4r/rdoc/configurator.html">configurator</a></li>
77
+
78
+ <li class="file"><a href="../../log4r/rdoc/emailoutputter.html">emailoutputter</a></li>
79
+
80
+ <li class="file"><a href="../../log4r/rdoc/formatter.html">formatter</a></li>
81
+
82
+ <li class="file"><a href="../../log4r/rdoc/log4r.html">log4r</a></li>
83
+
84
+ <li class="file"><a href="../../log4r/rdoc/logger.html">logger</a></li>
85
+
86
+ <li class="file"><a href="../../log4r/rdoc/logserver.html">logserver</a></li>
87
+
88
+ <li class="file"><a href="../../log4r/rdoc/outputter.html">outputter</a></li>
89
+
90
+ <li class="file"><a href="../../log4r/rdoc/patternformatter.html">patternformatter</a></li>
91
+
92
+ <li class="file"><a href="../../log4r/rdoc/syslogoutputter.html">syslogoutputter</a></li>
93
+
94
+ <li class="file"><a href="../../log4r/rdoc/win32eventoutputter.html">win32eventoutputter</a></li>
95
+
96
+ <li class="file"><a href="../../log4r/rdoc/yamlconfigurator.html">yamlconfigurator</a></li>
97
+
98
+ </ul>
99
+ </div>
100
+
101
+
102
+ <div id="classindex-section" class="section project-section">
103
+ <h3 class="section-header">Class Index
104
+ <span class="search-toggle"><img src="../../images/find.png"
105
+ height="16" width="16" alt="[+]"
106
+ title="show/hide quicksearch" /></span></h3>
107
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
108
+ <fieldset>
109
+ <legend>Quicksearch</legend>
110
+ <input type="text" name="quicksearch" value=""
111
+ class="quicksearch-field" />
112
+ </fieldset>
113
+ </form>
114
+
115
+ <ul class="link-list">
116
+
117
+ <li><a href="../../Log4r.html">Log4r</a></li>
118
+
119
+ <li><a href="../../Log4r/BasicFormatter.html">Log4r::BasicFormatter</a></li>
120
+
121
+ <li><a href="../../Log4r/ConfigError.html">Log4r::ConfigError</a></li>
122
+
123
+ <li><a href="../../Log4r/Configurator.html">Log4r::Configurator</a></li>
124
+
125
+ <li><a href="../../Log4r/DateFileOutputter.html">Log4r::DateFileOutputter</a></li>
126
+
127
+ <li><a href="../../Log4r/DefaultFormatter.html">Log4r::DefaultFormatter</a></li>
128
+
129
+ <li><a href="../../Log4r/EmailOutputter.html">Log4r::EmailOutputter</a></li>
130
+
131
+ <li><a href="../../Log4r/FileOutputter.html">Log4r::FileOutputter</a></li>
132
+
133
+ <li><a href="../../Log4r/Formatter.html">Log4r::Formatter</a></li>
134
+
135
+ <li><a href="../../Log4r/GDC.html">Log4r::GDC</a></li>
136
+
137
+ <li><a href="../../Log4r/IOOutputter.html">Log4r::IOOutputter</a></li>
138
+
139
+ <li><a href="../../Log4r/Log4jXmlFormatter.html">Log4r::Log4jXmlFormatter</a></li>
140
+
141
+ <li><a href="../../Log4r/Log4rTools.html">Log4r::Log4rTools</a></li>
142
+
143
+ <li><a href="../../Log4r/LogEvent.html">Log4r::LogEvent</a></li>
144
+
145
+ <li><a href="../../Log4r/LogServer.html">Log4r::LogServer</a></li>
146
+
147
+ <li><a href="../../Log4r/Logger.html">Log4r::Logger</a></li>
148
+
149
+ <li><a href="../../Log4r/MDC.html">Log4r::MDC</a></li>
150
+
151
+ <li><a href="../../Log4r/NDC.html">Log4r::NDC</a></li>
152
+
153
+ <li><a href="../../Log4r/ObjectFormatter.html">Log4r::ObjectFormatter</a></li>
154
+
155
+ <li><a href="../../Log4r/Outputter.html">Log4r::Outputter</a></li>
156
+
157
+ <li><a href="../../Log4r/PatternFormatter.html">Log4r::PatternFormatter</a></li>
158
+
159
+ <li><a href="../../Log4r/RemoteOutputter.html">Log4r::RemoteOutputter</a></li>
160
+
161
+ <li><a href="../../Log4r/RollingFileOutputter.html">Log4r::RollingFileOutputter</a></li>
162
+
163
+ <li><a href="../../Log4r/RootLogger.html">Log4r::RootLogger</a></li>
164
+
165
+ <li><a href="../../Log4r/SimpleFormatter.html">Log4r::SimpleFormatter</a></li>
166
+
167
+ <li><a href="../../Log4r/StderrOutputter.html">Log4r::StderrOutputter</a></li>
168
+
169
+ <li><a href="../../Log4r/StdoutOutputter.html">Log4r::StdoutOutputter</a></li>
170
+
171
+ <li><a href="../../Log4r/SyslogOutputter.html">Log4r::SyslogOutputter</a></li>
172
+
173
+ <li><a href="../../Log4r/UDPOutputter.html">Log4r::UDPOutputter</a></li>
174
+
175
+ <li><a href="../../Log4r/YamlConfigurator.html">Log4r::YamlConfigurator</a></li>
176
+
177
+ </ul>
178
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
179
+ </div>
180
+
181
+
182
+ </div>
183
+ </div>
184
+
185
+ <div id="documentation">
186
+ <h1 class="class">Log4r::Logger::Repository</h1>
187
+
188
+ <div id="description">
189
+ <p>
190
+ The repository stores a Hash of loggers keyed to their fullnames and
191
+ provides a few functions to reduce the code bloat in log4r/logger.rb. This
192
+ class is supposed to be transparent to end users, hence it is a class
193
+ within <a href="../Logger.html">Logger</a>. If anyone knows how to make
194
+ this private, let me know.
195
+ </p>
196
+
197
+ </div>
198
+
199
+ <!-- Constants -->
200
+
201
+
202
+ <!-- Attributes -->
203
+
204
+
205
+ <!-- Methods -->
206
+
207
+
208
+ </div>
209
+
210
+
211
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
212
+
213
+ <p>Disabled; run with --debug to generate this.</p>
214
+
215
+ </div>
216
+
217
+ <div id="validator-badges">
218
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
219
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
220
+ Rdoc Generator</a> 1.1.6</small>.</p>
221
+ </div>
222
+
223
+ </body>
224
+ </html>
225
+
@@ -0,0 +1,424 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: Log4r::MDC</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript"
13
+ charset="utf-8"></script>
14
+ <script src="../js/thickbox-compressed.js" type="text/javascript"
15
+ charset="utf-8"></script>
16
+ <script src="../js/quicksearch.js" type="text/javascript"
17
+ charset="utf-8"></script>
18
+ <script src="../js/darkfish.js" type="text/javascript"
19
+ charset="utf-8"></script>
20
+
21
+ </head>
22
+ <body class="class">
23
+
24
+ <div id="metadata">
25
+ <div id="file-metadata">
26
+ <div id="file-list-section" class="section">
27
+ <h3 class="section-header">In Files</h3>
28
+ <div class="section-body">
29
+ <ul>
30
+
31
+ <li><a href="../log4r/MDC_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
32
+ class="thickbox" title="log4r/MDC.rb">log4r/MDC.rb</a></li>
33
+
34
+ </ul>
35
+ </div>
36
+ </div>
37
+
38
+
39
+ </div>
40
+
41
+ <div id="class-metadata">
42
+
43
+ <!-- Parent Class -->
44
+
45
+ <div id="parent-class-section" class="section">
46
+ <h3 class="section-header">Parent</h3>
47
+
48
+ <p class="link">Monitor</p>
49
+
50
+ </div>
51
+
52
+
53
+ <!-- Namespace Contents -->
54
+
55
+
56
+ <!-- Method Quickref -->
57
+
58
+ <div id="method-list-section" class="section">
59
+ <h3 class="section-header">Methods</h3>
60
+ <ul class="link-list">
61
+
62
+ <li><a href="#M000063">::check_thread_instance</a></li>
63
+
64
+ <li><a href="#M000064">::get</a></li>
65
+
66
+ <li><a href="#M000065">::get_context</a></li>
67
+
68
+ <li><a href="#M000066">::put</a></li>
69
+
70
+ <li><a href="#M000067">::remove</a></li>
71
+
72
+ </ul>
73
+ </div>
74
+
75
+
76
+ <!-- Included Modules -->
77
+
78
+ </div>
79
+
80
+ <div id="project-metadata">
81
+
82
+
83
+ <div id="fileindex-section" class="section project-section">
84
+ <h3 class="section-header">Files</h3>
85
+ <ul>
86
+
87
+ <li class="file"><a href="../log4r/rdoc/GDC.html">GDC</a></li>
88
+
89
+ <li class="file"><a href="../log4r/rdoc/MDC.html">MDC</a></li>
90
+
91
+ <li class="file"><a href="../log4r/rdoc/NDC.html">NDC</a></li>
92
+
93
+ <li class="file"><a href="../log4r/rdoc/configurator.html">configurator</a></li>
94
+
95
+ <li class="file"><a href="../log4r/rdoc/emailoutputter.html">emailoutputter</a></li>
96
+
97
+ <li class="file"><a href="../log4r/rdoc/formatter.html">formatter</a></li>
98
+
99
+ <li class="file"><a href="../log4r/rdoc/log4r.html">log4r</a></li>
100
+
101
+ <li class="file"><a href="../log4r/rdoc/logger.html">logger</a></li>
102
+
103
+ <li class="file"><a href="../log4r/rdoc/logserver.html">logserver</a></li>
104
+
105
+ <li class="file"><a href="../log4r/rdoc/outputter.html">outputter</a></li>
106
+
107
+ <li class="file"><a href="../log4r/rdoc/patternformatter.html">patternformatter</a></li>
108
+
109
+ <li class="file"><a href="../log4r/rdoc/syslogoutputter.html">syslogoutputter</a></li>
110
+
111
+ <li class="file"><a href="../log4r/rdoc/win32eventoutputter.html">win32eventoutputter</a></li>
112
+
113
+ <li class="file"><a href="../log4r/rdoc/yamlconfigurator.html">yamlconfigurator</a></li>
114
+
115
+ </ul>
116
+ </div>
117
+
118
+
119
+ <div id="classindex-section" class="section project-section">
120
+ <h3 class="section-header">Class Index
121
+ <span class="search-toggle"><img src="../images/find.png"
122
+ height="16" width="16" alt="[+]"
123
+ title="show/hide quicksearch" /></span></h3>
124
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
125
+ <fieldset>
126
+ <legend>Quicksearch</legend>
127
+ <input type="text" name="quicksearch" value=""
128
+ class="quicksearch-field" />
129
+ </fieldset>
130
+ </form>
131
+
132
+ <ul class="link-list">
133
+
134
+ <li><a href="../Log4r.html">Log4r</a></li>
135
+
136
+ <li><a href="../Log4r/BasicFormatter.html">Log4r::BasicFormatter</a></li>
137
+
138
+ <li><a href="../Log4r/ConfigError.html">Log4r::ConfigError</a></li>
139
+
140
+ <li><a href="../Log4r/Configurator.html">Log4r::Configurator</a></li>
141
+
142
+ <li><a href="../Log4r/DateFileOutputter.html">Log4r::DateFileOutputter</a></li>
143
+
144
+ <li><a href="../Log4r/DefaultFormatter.html">Log4r::DefaultFormatter</a></li>
145
+
146
+ <li><a href="../Log4r/EmailOutputter.html">Log4r::EmailOutputter</a></li>
147
+
148
+ <li><a href="../Log4r/FileOutputter.html">Log4r::FileOutputter</a></li>
149
+
150
+ <li><a href="../Log4r/Formatter.html">Log4r::Formatter</a></li>
151
+
152
+ <li><a href="../Log4r/GDC.html">Log4r::GDC</a></li>
153
+
154
+ <li><a href="../Log4r/IOOutputter.html">Log4r::IOOutputter</a></li>
155
+
156
+ <li><a href="../Log4r/Log4jXmlFormatter.html">Log4r::Log4jXmlFormatter</a></li>
157
+
158
+ <li><a href="../Log4r/Log4rTools.html">Log4r::Log4rTools</a></li>
159
+
160
+ <li><a href="../Log4r/LogEvent.html">Log4r::LogEvent</a></li>
161
+
162
+ <li><a href="../Log4r/LogServer.html">Log4r::LogServer</a></li>
163
+
164
+ <li><a href="../Log4r/Logger.html">Log4r::Logger</a></li>
165
+
166
+ <li><a href="../Log4r/MDC.html">Log4r::MDC</a></li>
167
+
168
+ <li><a href="../Log4r/NDC.html">Log4r::NDC</a></li>
169
+
170
+ <li><a href="../Log4r/ObjectFormatter.html">Log4r::ObjectFormatter</a></li>
171
+
172
+ <li><a href="../Log4r/Outputter.html">Log4r::Outputter</a></li>
173
+
174
+ <li><a href="../Log4r/PatternFormatter.html">Log4r::PatternFormatter</a></li>
175
+
176
+ <li><a href="../Log4r/RemoteOutputter.html">Log4r::RemoteOutputter</a></li>
177
+
178
+ <li><a href="../Log4r/RollingFileOutputter.html">Log4r::RollingFileOutputter</a></li>
179
+
180
+ <li><a href="../Log4r/RootLogger.html">Log4r::RootLogger</a></li>
181
+
182
+ <li><a href="../Log4r/SimpleFormatter.html">Log4r::SimpleFormatter</a></li>
183
+
184
+ <li><a href="../Log4r/StderrOutputter.html">Log4r::StderrOutputter</a></li>
185
+
186
+ <li><a href="../Log4r/StdoutOutputter.html">Log4r::StdoutOutputter</a></li>
187
+
188
+ <li><a href="../Log4r/SyslogOutputter.html">Log4r::SyslogOutputter</a></li>
189
+
190
+ <li><a href="../Log4r/UDPOutputter.html">Log4r::UDPOutputter</a></li>
191
+
192
+ <li><a href="../Log4r/YamlConfigurator.html">Log4r::YamlConfigurator</a></li>
193
+
194
+ </ul>
195
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
196
+ </div>
197
+
198
+
199
+ </div>
200
+ </div>
201
+
202
+ <div id="documentation">
203
+ <h1 class="class">Log4r::MDC</h1>
204
+
205
+ <div id="description">
206
+ <p>
207
+ See <a href="../log4r/MDC_rb.html">log4r/MDC.rb</a>
208
+ </p>
209
+
210
+ </div>
211
+
212
+ <!-- Constants -->
213
+
214
+
215
+ <!-- Attributes -->
216
+
217
+
218
+ <!-- Methods -->
219
+
220
+ <div id="public-class-method-details" class="method-section section">
221
+ <h3 class="section-header">Public Class Methods</h3>
222
+
223
+
224
+ <div id="check-thread-instance-method" class="method-detail ">
225
+ <a name="M000063"></a>
226
+
227
+ <div class="method-heading">
228
+
229
+ <span class="method-name">check_thread_instance</span><span
230
+ class="method-args">()</span>
231
+ <span class="method-click-advice">click to toggle source</span>
232
+
233
+ </div>
234
+
235
+ <div class="method-description">
236
+
237
+ <p class="missing-docs">(Not documented)</p>
238
+
239
+
240
+
241
+ <div class="method-source-code"
242
+ id="check-thread-instance-source">
243
+ <pre>
244
+ <span class="ruby-comment cmt"># File log4r/MDC.rb, line 19</span>
245
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">check_thread_instance</span>()
246
+ <span class="ruby-comment cmt"># need to interlock here, so that if</span>
247
+ <span class="ruby-comment cmt"># another thread is entering this section</span>
248
+ <span class="ruby-comment cmt"># of code before the main thread does,</span>
249
+ <span class="ruby-comment cmt"># then the main thread copy of the MDC</span>
250
+ <span class="ruby-comment cmt"># is setup before then attempting to clone</span>
251
+ <span class="ruby-comment cmt"># it off</span>
252
+ <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">current</span>[<span class="ruby-constant">MDCNAME</span>] <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span> ) <span class="ruby-keyword kw">then</span>
253
+ <span class="ruby-identifier">$globalMDCLock</span>.<span class="ruby-identifier">synchronize</span> <span class="ruby-keyword kw">do</span>
254
+ <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">main</span>[<span class="ruby-constant">MDCNAME</span>] <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span> ) <span class="ruby-keyword kw">then</span>
255
+ <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">main</span>[<span class="ruby-constant">MDCNAME</span>] = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
256
+ <span class="ruby-keyword kw">end</span>
257
+ <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">current</span> <span class="ruby-operator">!=</span> <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">main</span> ) <span class="ruby-keyword kw">then</span>
258
+ <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">current</span>[<span class="ruby-constant">MDCNAME</span>] = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
259
+ <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">main</span>[<span class="ruby-constant">MDCNAME</span>].<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">current</span>[<span class="ruby-constant">MDCNAME</span>][<span class="ruby-identifier">k</span>] = <span class="ruby-identifier">v</span> }
260
+ <span class="ruby-keyword kw">end</span>
261
+ <span class="ruby-keyword kw">end</span>
262
+ <span class="ruby-keyword kw">end</span>
263
+ <span class="ruby-keyword kw">end</span></pre>
264
+ </div>
265
+
266
+ </div>
267
+
268
+
269
+ </div>
270
+
271
+
272
+ <div id="get-method" class="method-detail ">
273
+ <a name="M000064"></a>
274
+
275
+ <div class="method-heading">
276
+
277
+ <span class="method-name">get</span><span
278
+ class="method-args">( a_key )</span>
279
+ <span class="method-click-advice">click to toggle source</span>
280
+
281
+ </div>
282
+
283
+ <div class="method-description">
284
+
285
+ <p class="missing-docs">(Not documented)</p>
286
+
287
+
288
+
289
+ <div class="method-source-code"
290
+ id="get-source">
291
+ <pre>
292
+ <span class="ruby-comment cmt"># File log4r/MDC.rb, line 39</span>
293
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">get</span>( <span class="ruby-identifier">a_key</span> )
294
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">check_thread_instance</span>()
295
+ <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">current</span>[<span class="ruby-constant">MDCNAME</span>].<span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">a_key</span>, <span class="ruby-value str">&quot;&quot;</span>);
296
+ <span class="ruby-keyword kw">end</span></pre>
297
+ </div>
298
+
299
+ </div>
300
+
301
+
302
+ </div>
303
+
304
+
305
+ <div id="get-context-method" class="method-detail ">
306
+ <a name="M000065"></a>
307
+
308
+ <div class="method-heading">
309
+
310
+ <span class="method-name">get_context</span><span
311
+ class="method-args">()</span>
312
+ <span class="method-click-advice">click to toggle source</span>
313
+
314
+ </div>
315
+
316
+ <div class="method-description">
317
+
318
+ <p class="missing-docs">(Not documented)</p>
319
+
320
+
321
+
322
+ <div class="method-source-code"
323
+ id="get-context-source">
324
+ <pre>
325
+ <span class="ruby-comment cmt"># File log4r/MDC.rb, line 44</span>
326
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">get_context</span>()
327
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">check_thread_instance</span>()
328
+ <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">current</span>[<span class="ruby-constant">MDCNAME</span>].<span class="ruby-identifier">clone</span>
329
+ <span class="ruby-keyword kw">end</span></pre>
330
+ </div>
331
+
332
+ </div>
333
+
334
+
335
+ </div>
336
+
337
+
338
+ <div id="put-method" class="method-detail ">
339
+ <a name="M000066"></a>
340
+
341
+ <div class="method-heading">
342
+
343
+ <span class="method-name">put</span><span
344
+ class="method-args">( a_key, a_value )</span>
345
+ <span class="method-click-advice">click to toggle source</span>
346
+
347
+ </div>
348
+
349
+ <div class="method-description">
350
+
351
+ <p class="missing-docs">(Not documented)</p>
352
+
353
+
354
+
355
+ <div class="method-source-code"
356
+ id="put-source">
357
+ <pre>
358
+ <span class="ruby-comment cmt"># File log4r/MDC.rb, line 49</span>
359
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">put</span>( <span class="ruby-identifier">a_key</span>, <span class="ruby-identifier">a_value</span> )
360
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">check_thread_instance</span>()
361
+ <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">current</span>[<span class="ruby-constant">MDCNAME</span>][<span class="ruby-identifier">a_key</span>] = <span class="ruby-identifier">a_value</span>
362
+ <span class="ruby-keyword kw">end</span></pre>
363
+ </div>
364
+
365
+ </div>
366
+
367
+
368
+ </div>
369
+
370
+
371
+ <div id="remove-method" class="method-detail ">
372
+ <a name="M000067"></a>
373
+
374
+ <div class="method-heading">
375
+
376
+ <span class="method-name">remove</span><span
377
+ class="method-args">( a_key )</span>
378
+ <span class="method-click-advice">click to toggle source</span>
379
+
380
+ </div>
381
+
382
+ <div class="method-description">
383
+
384
+ <p class="missing-docs">(Not documented)</p>
385
+
386
+
387
+
388
+ <div class="method-source-code"
389
+ id="remove-source">
390
+ <pre>
391
+ <span class="ruby-comment cmt"># File log4r/MDC.rb, line 54</span>
392
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">remove</span>( <span class="ruby-identifier">a_key</span> )
393
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">check_thread_instance</span>()
394
+ <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">current</span>[<span class="ruby-constant">MDCNAME</span>].<span class="ruby-identifier">delete</span>( <span class="ruby-identifier">a_key</span> )
395
+ <span class="ruby-keyword kw">end</span></pre>
396
+ </div>
397
+
398
+ </div>
399
+
400
+
401
+ </div>
402
+
403
+
404
+ </div>
405
+
406
+
407
+ </div>
408
+
409
+
410
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
411
+
412
+ <p>Disabled; run with --debug to generate this.</p>
413
+
414
+ </div>
415
+
416
+ <div id="validator-badges">
417
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
418
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
419
+ Rdoc Generator</a> 1.1.6</small>.</p>
420
+ </div>
421
+
422
+ </body>
423
+ </html>
424
+