Permalink
Browse files

lager: basho libs update

  • Loading branch information...
1 parent cfdd9e9 commit 4b24695624892d932a0aa79f9c3580f64bdfde11 @jamesaimonetti jamesaimonetti committed Feb 24, 2012
Showing with 18,597 additions and 2,073 deletions.
  1. +52 −0 lib/basho-lager_syslog/Makefile
  2. +33 −0 lib/basho-lager_syslog/README.org
  3. +1 −0 lib/basho-lager_syslog/deps/lager
  4. BIN lib/basho-lager_syslog/rebar
  5. +10 −0 lib/basho-lager_syslog/rebar.config
  6. +13 −0 lib/basho-lager_syslog/src/lager_syslog.app.src
  7. +85 −0 lib/basho-lager_syslog/src/lager_syslog_backend.erl
  8. +178 −0 lib/lager-1.0.0/LICENSE
  9. +52 −0 lib/lager-1.0.0/Makefile
  10. +222 −0 lib/lager-1.0.0/README.org
  11. +3 −0 lib/lager-1.0.0/TODO
  12. 0 lib/lager-1.0.0/dialyzer.ignore-warnings
  13. BIN lib/lager-1.0.0/ebin/error_logger_lager_h.beam
  14. +23 −0 lib/lager-1.0.0/ebin/lager.app
  15. BIN lib/lager-1.0.0/ebin/lager.beam
  16. BIN lib/lager-1.0.0/ebin/lager_app.beam
  17. BIN lib/lager-1.0.0/ebin/lager_console_backend.beam
  18. BIN lib/lager-1.0.0/ebin/lager_crash_log.beam
  19. BIN lib/lager-1.0.0/ebin/lager_file_backend.beam
  20. BIN lib/lager-1.0.0/ebin/lager_format.beam
  21. BIN lib/lager-1.0.0/ebin/lager_handler_watcher.beam
  22. BIN lib/lager-1.0.0/ebin/lager_handler_watcher_sup.beam
  23. BIN lib/lager-1.0.0/ebin/lager_mochiglobal.beam
  24. BIN lib/lager-1.0.0/ebin/lager_stdlib.beam
  25. BIN lib/lager-1.0.0/ebin/lager_sup.beam
  26. BIN lib/lager-1.0.0/ebin/lager_transform.beam
  27. BIN lib/lager-1.0.0/ebin/lager_trunc_io.beam
  28. BIN lib/lager-1.0.0/ebin/lager_util.beam
  29. +95 −0 lib/lager-1.0.0/include/lager.hrl
  30. BIN lib/lager-1.0.0/rebar
  31. +4 −0 lib/lager-1.0.0/rebar.config
  32. +281 −0 lib/lager-1.0.0/src/error_logger_lager_h.erl
  33. +41 −0 lib/lager-1.0.0/src/lager.app.src
  34. +294 −0 lib/lager-1.0.0/src/lager.erl
  35. +77 −0 lib/lager-1.0.0/src/lager_app.erl
  36. +271 −0 lib/lager-1.0.0/src/lager_console_backend.erl
  37. +337 −0 lib/lager-1.0.0/src/lager_crash_log.erl
  38. +390 −0 lib/lager-1.0.0/src/lager_file_backend.erl
  39. +523 −0 lib/lager-1.0.0/src/lager_format.erl
  40. +155 −0 lib/lager-1.0.0/src/lager_handler_watcher.erl
  41. +39 −0 lib/lager-1.0.0/src/lager_handler_watcher_sup.erl
  42. +107 −0 lib/lager-1.0.0/src/lager_mochiglobal.erl
  43. +507 −0 lib/lager-1.0.0/src/lager_stdlib.erl
  44. +80 −0 lib/lager-1.0.0/src/lager_sup.erl
  45. +132 −0 lib/lager-1.0.0/src/lager_transform.erl
  46. +576 −0 lib/lager-1.0.0/src/lager_trunc_io.erl
  47. +455 −0 lib/lager-1.0.0/src/lager_util.erl
  48. +96 −0 lib/lager-1.0.0/test/crash.erl
  49. +68 −0 lib/lager-1.0.0/test/lager_crash_backend.erl
  50. +731 −0 lib/lager-1.0.0/test/lager_test_backend.erl
  51. +28 −0 lib/lager-1.0.0/test/special_process.erl
  52. +89 −0 lib/lager-1.0.0/test/sync_error_logger.erl
  53. +208 −0 lib/lager-1.0.0/test/trunc_io_eqc.erl
  54. +0 −1 lib/riak_core-0.14.0/deps/basho_stats
  55. +0 −1 lib/riak_core-0.14.0/deps/riak_sysmon
  56. BIN lib/riak_core-0.14.0/ebin/app_helper.beam
  57. BIN lib/riak_core-0.14.0/ebin/bloom.beam
  58. BIN lib/riak_core-0.14.0/ebin/chash.beam
  59. BIN lib/riak_core-0.14.0/ebin/gen_nb_server.beam
  60. BIN lib/riak_core-0.14.0/ebin/gen_server2.beam
  61. BIN lib/riak_core-0.14.0/ebin/json_pp.beam
  62. BIN lib/riak_core-0.14.0/ebin/process_proxy.beam
  63. BIN lib/riak_core-0.14.0/ebin/riak_core.beam
  64. BIN lib/riak_core-0.14.0/ebin/riak_core_apl.beam
  65. BIN lib/riak_core-0.14.0/ebin/riak_core_app.beam
  66. BIN lib/riak_core-0.14.0/ebin/riak_core_bucket.beam
  67. BIN lib/riak_core-0.14.0/ebin/riak_core_claim.beam
  68. BIN lib/riak_core-0.14.0/ebin/riak_core_config.beam
  69. BIN lib/riak_core-0.14.0/ebin/riak_core_eventhandler_guard.beam
  70. BIN lib/riak_core-0.14.0/ebin/riak_core_eventhandler_sup.beam
  71. BIN lib/riak_core-0.14.0/ebin/riak_core_gossip.beam
  72. BIN lib/riak_core-0.14.0/ebin/riak_core_handoff_listener.beam
  73. BIN lib/riak_core-0.14.0/ebin/riak_core_handoff_manager.beam
  74. BIN lib/riak_core-0.14.0/ebin/riak_core_handoff_receiver.beam
  75. BIN lib/riak_core-0.14.0/ebin/riak_core_handoff_sender.beam
  76. BIN lib/riak_core-0.14.0/ebin/riak_core_node_watcher.beam
  77. BIN lib/riak_core-0.14.0/ebin/riak_core_node_watcher_events.beam
  78. BIN lib/riak_core-0.14.0/ebin/riak_core_ring.beam
  79. BIN lib/riak_core-0.14.0/ebin/riak_core_ring_handler.beam
  80. BIN lib/riak_core-0.14.0/ebin/riak_core_ring_manager.beam
  81. BIN lib/riak_core-0.14.0/ebin/riak_core_ring_util.beam
  82. BIN lib/riak_core-0.14.0/ebin/riak_core_sup.beam
  83. BIN lib/riak_core-0.14.0/ebin/riak_core_sysmon_handler.beam
  84. BIN lib/riak_core-0.14.0/ebin/riak_core_sysmon_minder.beam
  85. BIN lib/riak_core-0.14.0/ebin/riak_core_test_util.beam
  86. BIN lib/riak_core-0.14.0/ebin/riak_core_tracer.beam
  87. BIN lib/riak_core-0.14.0/ebin/riak_core_util.beam
  88. BIN lib/riak_core-0.14.0/ebin/riak_core_vnode.beam
  89. BIN lib/riak_core-0.14.0/ebin/riak_core_vnode_master.beam
  90. BIN lib/riak_core-0.14.0/ebin/riak_core_vnode_sup.beam
  91. BIN lib/riak_core-0.14.0/ebin/riak_core_web.beam
  92. BIN lib/riak_core-0.14.0/ebin/riak_core_wm_urlmap.beam
  93. BIN lib/riak_core-0.14.0/ebin/slide.beam
  94. BIN lib/riak_core-0.14.0/ebin/spiraltime.beam
  95. BIN lib/riak_core-0.14.0/ebin/vclock.beam
  96. BIN lib/riak_core-0.14.0/rebar
  97. +0 −51 lib/riak_core-0.14.0/src/app_helper.erl
  98. +0 −214 lib/riak_core-0.14.0/src/chash.erl
  99. +0 −117 lib/riak_core-0.14.0/src/riak_core.erl
  100. +0 −77 lib/riak_core-0.14.0/src/riak_core_handoff_manager.erl
  101. +0 −169 lib/riak_core-0.14.0/src/riak_core_handoff_sender.erl
  102. +0 −385 lib/riak_core-0.14.0/src/riak_core_ring.erl
  103. +0 −329 lib/riak_core-0.14.0/src/riak_core_vnode.erl
  104. +0 −244 lib/riak_core-0.14.0/test/core_vnode_eqc.erl
  105. +2 −2 lib/{riak_core-0.14.0 → riak_core-1.1.0}/Makefile
  106. 0 lib/{riak_core-0.14.0 → riak_core-1.1.0}/README.org
  107. +1 −0 lib/riak_core-1.1.0/deps/basho_stats
  108. +1 −0 lib/riak_core-1.1.0/deps/lager
  109. +1 −0 lib/riak_core-1.1.0/deps/mochiweb
  110. +1 −0 lib/riak_core-1.1.0/deps/poolboy
  111. 0 lib/{riak_core-0.14.0 → riak_core-1.1.0}/deps/protobuffs
  112. +1 −0 lib/riak_core-1.1.0/deps/riak_sysmon
  113. +1 −0 lib/riak_core-1.1.0/deps/webmachine
  114. BIN lib/riak_core-1.1.0/ebin/app_helper.beam
  115. BIN lib/riak_core-1.1.0/ebin/bloom.beam
  116. BIN lib/riak_core-1.1.0/ebin/chash.beam
  117. BIN lib/riak_core-1.1.0/ebin/gen_nb_server.beam
  118. BIN lib/riak_core-1.1.0/ebin/gen_server2.beam
  119. BIN lib/riak_core-1.1.0/ebin/json_pp.beam
  120. BIN lib/{riak_core-0.14.0 → riak_core-1.1.0}/ebin/merkerl.beam
  121. BIN lib/{riak_core-0.14.0 → riak_core-1.1.0}/ebin/priority_queue.beam
  122. BIN lib/riak_core-1.1.0/ebin/process_proxy.beam
  123. +24 −4 lib/{riak_core-0.14.0 → riak_core-1.1.0}/ebin/riak_core.app
  124. BIN lib/riak_core-1.1.0/ebin/riak_core.beam
  125. BIN lib/riak_core-1.1.0/ebin/riak_core_apl.beam
  126. BIN lib/riak_core-1.1.0/ebin/riak_core_app.beam
  127. BIN lib/riak_core-1.1.0/ebin/riak_core_bucket.beam
  128. BIN lib/{riak_core-0.14.0 → riak_core-1.1.0}/ebin/riak_core_cinfo_core.beam
  129. BIN lib/riak_core-1.1.0/ebin/riak_core_claim.beam
  130. BIN lib/riak_core-1.1.0/ebin/riak_core_config.beam
  131. BIN lib/riak_core-1.1.0/ebin/riak_core_console.beam
  132. BIN lib/riak_core-1.1.0/ebin/riak_core_coverage_fsm.beam
  133. BIN lib/riak_core-1.1.0/ebin/riak_core_coverage_plan.beam
  134. BIN lib/riak_core-1.1.0/ebin/riak_core_eventhandler_guard.beam
  135. BIN lib/riak_core-1.1.0/ebin/riak_core_eventhandler_sup.beam
  136. BIN lib/riak_core-1.1.0/ebin/riak_core_gossip.beam
  137. BIN lib/riak_core-1.1.0/ebin/riak_core_gossip_legacy.beam
  138. BIN lib/riak_core-1.1.0/ebin/riak_core_handoff_listener.beam
  139. BIN lib/riak_core-1.1.0/ebin/riak_core_handoff_listener_sup.beam
  140. BIN lib/riak_core-1.1.0/ebin/riak_core_handoff_manager.beam
  141. BIN lib/riak_core-1.1.0/ebin/riak_core_handoff_receiver.beam
  142. BIN lib/riak_core-1.1.0/ebin/riak_core_handoff_receiver_sup.beam
  143. BIN lib/riak_core-1.1.0/ebin/riak_core_handoff_sender.beam
  144. BIN lib/riak_core-1.1.0/ebin/riak_core_handoff_sender_sup.beam
  145. BIN lib/riak_core-1.1.0/ebin/riak_core_handoff_sup.beam
  146. BIN lib/riak_core-1.1.0/ebin/riak_core_new_claim.beam
  147. BIN lib/riak_core-1.1.0/ebin/riak_core_node_watcher.beam
  148. BIN lib/riak_core-1.1.0/ebin/riak_core_node_watcher_events.beam
  149. BIN lib/riak_core-1.1.0/ebin/riak_core_nodeid.beam
  150. BIN lib/{riak_core-0.14.0 → riak_core-1.1.0}/ebin/riak_core_pb.beam
  151. BIN lib/riak_core-1.1.0/ebin/riak_core_ring.beam
  152. BIN lib/{riak_core-0.14.0 → riak_core-1.1.0}/ebin/riak_core_ring_events.beam
  153. BIN lib/riak_core-1.1.0/ebin/riak_core_ring_handler.beam
  154. BIN lib/riak_core-1.1.0/ebin/riak_core_ring_manager.beam
  155. BIN lib/riak_core-1.1.0/ebin/riak_core_ring_util.beam
  156. BIN lib/riak_core-1.1.0/ebin/riak_core_stat.beam
  157. BIN lib/riak_core-1.1.0/ebin/riak_core_status.beam
  158. BIN lib/riak_core-1.1.0/ebin/riak_core_sup.beam
  159. BIN lib/riak_core-1.1.0/ebin/riak_core_sysmon_handler.beam
  160. BIN lib/riak_core-1.1.0/ebin/riak_core_sysmon_minder.beam
  161. BIN lib/riak_core-1.1.0/ebin/riak_core_test_util.beam
  162. BIN lib/riak_core-1.1.0/ebin/riak_core_tracer.beam
  163. BIN lib/riak_core-1.1.0/ebin/riak_core_util.beam
  164. BIN lib/riak_core-1.1.0/ebin/riak_core_vnode.beam
  165. BIN lib/riak_core-1.1.0/ebin/riak_core_vnode_manager.beam
  166. BIN lib/riak_core-1.1.0/ebin/riak_core_vnode_master.beam
  167. BIN lib/riak_core-1.1.0/ebin/riak_core_vnode_proxy.beam
  168. BIN lib/riak_core-1.1.0/ebin/riak_core_vnode_proxy_sup.beam
  169. BIN lib/riak_core-1.1.0/ebin/riak_core_vnode_sup.beam
  170. BIN lib/riak_core-1.1.0/ebin/riak_core_vnode_worker.beam
  171. BIN lib/riak_core-1.1.0/ebin/riak_core_vnode_worker_pool.beam
  172. BIN lib/riak_core-1.1.0/ebin/riak_core_web.beam
  173. BIN lib/riak_core-1.1.0/ebin/riak_core_wm_urlmap.beam
  174. BIN lib/riak_core-1.1.0/ebin/slide.beam
  175. BIN lib/riak_core-1.1.0/ebin/spiraltime.beam
  176. BIN lib/riak_core-1.1.0/ebin/supervisor_pre_r14b04.beam
  177. BIN lib/riak_core-1.1.0/ebin/vclock.beam
  178. 0 lib/{riak_core-0.14.0 → riak_core-1.1.0}/include/riak_core_handoff.hrl
  179. 0 lib/{riak_core-0.14.0 → riak_core-1.1.0}/include/riak_core_pb.hrl
  180. +2 −0 lib/riak_core-1.1.0/include/riak_core_ring.hrl
  181. +6 −1 lib/{riak_core-0.14.0 → riak_core-1.1.0}/include/riak_core_vnode.hrl
  182. BIN lib/riak_core-1.1.0/rebar
  183. +7 −2 lib/{riak_core-0.14.0 → riak_core-1.1.0}/rebar.config
  184. +120 −0 lib/riak_core-1.1.0/src/app_helper.erl
  185. 0 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/bloom.erl
  186. +264 −0 lib/riak_core-1.1.0/src/chash.erl
  187. 0 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/gen_nb_server.erl
  188. 0 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/gen_server2.erl
  189. 0 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/json_pp.erl
  190. 0 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/merkerl.erl
  191. 0 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/priority_queue.erl
  192. 0 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/process_proxy.erl
  193. +421 −0 lib/riak_core-1.1.0/src/riak_core.erl
  194. 0 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core.proto
  195. +92 −10 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_apl.erl
  196. +16 −8 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_app.erl
  197. +40 −12 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_bucket.erl
  198. 0 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_cinfo_core.erl
  199. +339 −77 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_claim.erl
  200. +7 −5 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_config.erl
  201. +170 −0 lib/riak_core-1.1.0/src/riak_core_console.erl
  202. +275 −0 lib/riak_core-1.1.0/src/riak_core_coverage_fsm.erl
  203. +268 −0 lib/riak_core-1.1.0/src/riak_core_coverage_plan.erl
  204. 0 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_eventhandler_guard.erl
  205. 0 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_eventhandler_sup.erl
  206. +496 −0 lib/riak_core-1.1.0/src/riak_core_gossip.erl
  207. +24 −14 lib/{riak_core-0.14.0/src/riak_core_gossip.erl → riak_core-1.1.0/src/riak_core_gossip_legacy.erl}
  208. +10 −4 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_handoff_listener.erl
  209. +39 −0 lib/riak_core-1.1.0/src/riak_core_handoff_listener_sup.erl
  210. +317 −0 lib/riak_core-1.1.0/src/riak_core_handoff_manager.erl
  211. +14 −10 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_handoff_receiver.erl
  212. +47 −0 lib/riak_core-1.1.0/src/riak_core_handoff_receiver_sup.erl
  213. +225 −0 lib/riak_core-1.1.0/src/riak_core_handoff_sender.erl
  214. +47 −0 lib/riak_core-1.1.0/src/riak_core_handoff_sender_sup.erl
  215. +42 −0 lib/riak_core-1.1.0/src/riak_core_handoff_sup.erl
  216. +39 −0 lib/riak_core-1.1.0/src/riak_core_new_claim.erl
  217. +42 −11 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_node_watcher.erl
  218. 0 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_node_watcher_events.erl
  219. +31 −0 lib/riak_core-1.1.0/src/riak_core_nodeid.erl
  220. +1,731 −0 lib/riak_core-1.1.0/src/riak_core_ring.erl
  221. 0 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_ring_events.erl
  222. +51 −18 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_ring_handler.erl
  223. +152 −32 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_ring_manager.erl
  224. 0 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_ring_util.erl
  225. +294 −0 lib/riak_core-1.1.0/src/riak_core_stat.erl
  226. +172 −0 lib/riak_core-1.1.0/src/riak_core_status.erl
  227. +7 −4 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_sup.erl
  228. +7 −6 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_sysmon_handler.erl
  229. 0 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_sysmon_minder.erl
  230. +9 −5 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_test_util.erl
  231. +3 −0 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_tracer.erl
  232. +97 −1 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_util.erl
  233. +649 −0 lib/riak_core-1.1.0/src/riak_core_vnode.erl
  234. +477 −0 lib/riak_core-1.1.0/src/riak_core_vnode_manager.erl
  235. +100 −96 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_vnode_master.erl
  236. +125 −0 lib/riak_core-1.1.0/src/riak_core_vnode_proxy.erl
  237. +63 −0 lib/riak_core-1.1.0/src/riak_core_vnode_proxy_sup.erl
  238. +11 −5 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_vnode_sup.erl
  239. +80 −0 lib/riak_core-1.1.0/src/riak_core_vnode_worker.erl
  240. +190 −0 lib/riak_core-1.1.0/src/riak_core_vnode_worker_pool.erl
  241. +7 −7 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_web.erl
  242. 0 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/riak_core_wm_urlmap.erl
  243. +89 −11 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/slide.erl
  244. +41 −3 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/spiraltime.erl
  245. +1,260 −0 lib/riak_core-1.1.0/src/supervisor_pre_r14b04.erl
  246. +68 −55 lib/{riak_core-0.14.0 → riak_core-1.1.0}/src/vclock.erl
  247. +229 −0 lib/riak_core-1.1.0/test/bucket_fixup_test.erl
  248. +150 −0 lib/riak_core-1.1.0/test/chash_eqc.erl
  249. +135 −0 lib/riak_core-1.1.0/test/claim_simulation.erl
  250. +425 −0 lib/riak_core-1.1.0/test/core_vnode_eqc.erl
  251. +63 −3 lib/{riak_core-0.14.0 → riak_core-1.1.0}/test/mock_vnode.erl
  252. +94 −0 lib/riak_core-1.1.0/test/my_ring
  253. +1,974 −0 lib/riak_core-1.1.0/test/new_cluster_membership_model_eqc.erl
  254. +2 −1 lib/{riak_core-0.14.0 → riak_core-1.1.0}/test/node_watcher_qc.erl
  255. 0 lib/{riak_core-0.14.0 → riak_core-1.1.0}/test/test_guarded_event_handler.erl
  256. +96 −0 lib/riak_core-1.1.0/test/worker_pool_test.erl
  257. +12 −0 lib/riak_err-1.0.1/Makefile
  258. BIN lib/riak_err-1.0.1/ebin/riak_err_app.beam
  259. BIN lib/riak_err-1.0.1/ebin/riak_err_handler.beam
  260. BIN lib/riak_err-1.0.1/ebin/riak_err_monitor.beam
  261. BIN lib/riak_err-1.0.1/ebin/riak_err_stdlib.beam
  262. BIN lib/riak_err-1.0.1/ebin/riak_err_sup.beam
  263. BIN lib/riak_err-1.0.1/ebin/trunc_io.beam
  264. +3 −1 lib/riak_err-1.0.1/rebar.config
  265. +3 −0 lib/riak_err-1.0.1/src/riak_err_app.erl
  266. +14 −35 lib/riak_err-1.0.1/src/riak_err_handler.erl
  267. +9 −38 lib/riak_err-1.0.1/src/riak_err_monitor.erl
  268. +10 −4 lib/riak_err-1.0.1/src/riak_err_stdlib.erl
  269. +2 −0 lib/riak_err-1.0.1/src/riak_err_sup.erl
  270. +5 −0 lib/riak_err-1.0.1/src/trunc_io.erl
@@ -0,0 +1,52 @@
+.PHONY: rel stagedevrel deps test
+
+all: deps compile
+
+compile:
+ ./rebar compile
+
+deps:
+ ./rebar get-deps
+
+clean:
+ ./rebar clean
+
+distclean: clean
+ ./rebar delete-deps
+
+test:
+ ./rebar eunit
+
+##
+## Doc targets
+##
+docs:
+ ./rebar doc
+
+APPS = kernel stdlib sasl erts ssl tools os_mon runtime_tools crypto inets \
+ xmerl webtool snmp public_key mnesia eunit syntax_tools compiler
+COMBO_PLT = $(HOME)/.riak_combo_dialyzer_plt
+
+check_plt: compile
+ dialyzer --check_plt --plt $(COMBO_PLT) --apps $(APPS)
+
+build_plt: compile
+ dialyzer --build_plt --output_plt $(COMBO_PLT) --apps $(APPS)
+
+dialyzer: compile
+ @echo
+ @echo Use "'make check_plt'" to check PLT prior to using this target.
+ @echo Use "'make build_plt'" to build PLT prior to using this target.
+ @echo
+ @sleep 1
+ dialyzer -Wno_return --plt $(COMBO_PLT) ebin | \
+ fgrep -v -f ./dialyzer.ignore-warnings
+
+cleanplt:
+ @echo
+ @echo "Are you sure? It takes about 1/2 hour to re-build."
+ @echo Deleting $(COMBO_PLT) in 5 seconds.
+ @echo
+ sleep 5
+ rm $(COMBO_PLT)
+
@@ -0,0 +1,33 @@
+* Overview
+ This is a syslog backend for [[https://github.com/basho/lager][Lager]]. It
+ allows you to send messages out of lager and into the local syslog daemon.
+
+* Configuration
+ Configure a Lager handler like the following:
+
+#+BEGIN_EXAMPLE
+ {lager_syslog_backend, [Identity, Facility, Level]}
+#+END_EXAMPLE
+
+ The Identity is the string to tag all messages with in syslog, usually the
+ application's name. The facility is the facility to log to (see the syslog
+ documentation for a list of these). The Level is the lager level at which the
+ backend accepts messages (eg. using 'info' would send all messages at info
+ level or above into syslog). While you can filter messages at the syslog
+ level, it will improve performance if you filter in lager instead.
+
+ An example for [[http://www.basho.com/products_riak_overview.php][riak]]
+ would look something like this:
+
+#+BEGIN_EXAMPLE
+ {lager_syslog_backend, ["riak", local7, info]}
+#+END_EXAMPLE
+
+ Refer to Lager's documentation for futher information on configuring handlers.
+
+* Troubleshooting
+ There's not a lot to go wrong, but if you are not receiving messages, check
+ your syslog config and read its manpage for more information. OS X, in
+ particular, has a very strange default config where it drops messages below
+ the 'info' level by default.
+
Submodule lager added at b46e37
Binary file not shown.
@@ -0,0 +1,10 @@
+{erl_opts, [debug_info]}.
+
+{cover_enabled, true}.
+
+{deps, [
+ {lager, "0.9.*", {git, "git://github.com/basho/lager", {branch, "master"}}},
+ {'syslog', "0.0.1", {git, "git://github.com/Vagabond/erlang-syslog", {branch, "master"}}}
+ ]
+}.
+
@@ -0,0 +1,13 @@
+%% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
+%% ex: ts=4 sw=4 et
+{application, lager_syslog,
+ [
+ {description, "Syslog backend for Lager"},
+ {vsn, "0.9.0"},
+ {modules, []},
+ {applications, [
+ kernel,
+ stdlib
+ ]},
+ {registered, []}
+ ]}.
@@ -0,0 +1,85 @@
+%% Copyright (c) 2011 Basho Technologies, Inc. All Rights Reserved.
+%%
+%% This file is provided to you under the Apache License,
+%% Version 2.0 (the "License"); you may not use this file
+%% except in compliance with the License. You may obtain
+%% a copy of the License at
+%%
+%% http://www.apache.org/licenses/LICENSE-2.0
+%%
+%% Unless required by applicable law or agreed to in writing,
+%% software distributed under the License is distributed on an
+%% "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+%% KIND, either express or implied. See the License for the
+%% specific language governing permissions and limitations
+%% under the License.
+
+%% @doc Syslog backend for lager.
+
+-module(lager_syslog_backend).
+
+-behaviour(gen_event).
+
+-export([init/1, handle_call/2, handle_event/2, handle_info/2, terminate/2,
+ code_change/3]).
+
+-record(state, {level}).
+
+-include_lib("lager/include/lager.hrl").
+
+%% @private
+init([Ident, Facility, Level]) ->
+ case application:start(syslog) of
+ ok ->
+ init2(Ident, Facility, Level);
+ {error, {already_started, _}} ->
+ init2(Ident, Facility, Level);
+ Error ->
+ Error
+ end.
+
+init2(Ident, Facility, Level) ->
+ case syslog:open(Ident, [pid], Facility) of
+ ok ->
+ {ok, #state{level=lager_util:level_to_num(Level)}};
+ Error ->
+ Error
+ end.
+
+%% @private
+handle_call(get_loglevel, #state{level=Level} = State) ->
+ {ok, Level, State};
+handle_call({set_loglevel, Level}, State) ->
+ {ok, ok, State#state{level=lager_util:level_to_num(Level)}};
+handle_call(_Request, State) ->
+ {ok, ok, State}.
+
+%% @private
+handle_event({log, Level, {_Date, _Time}, [_LevelStr, Location, Message]}, State) ->
+ syslog:log(convert_level(Level), [Location, Message]),
+ {ok, State};
+handle_event(_Event, State) ->
+ {ok, State}.
+
+%% @private
+handle_info(_Info, State) ->
+ {ok, State}.
+
+%% @private
+terminate(_Reason, _State) ->
+ application:stop(syslog),
+ ok.
+
+%% @private
+code_change(_OldVsn, State, _Extra) ->
+ {ok, State}.
+
+convert_level(?DEBUG) -> debug;
+convert_level(?INFO) -> info;
+convert_level(?NOTICE) -> notice;
+convert_level(?WARNING) -> warning;
+convert_level(?ERROR) -> err;
+convert_level(?CRITICAL) -> crit;
+convert_level(?ALERT) -> alert;
+convert_level(?EMERGENCY) -> emergency.
+
View
@@ -0,0 +1,178 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
Oops, something went wrong.

0 comments on commit 4b24695

Please sign in to comment.