官术网_书友最值得收藏!

Chapter 3. Logging

We've read patiently and slugged our way through Chapter 2, Ring and the Ring Server, learning the technicalities about request and response maps, handlers, middleware, and adapters. The time has come for us to start getting our hands dirty.

Logging is a wonderful tool in development, and is essential for successfully debugging a system that's gone completely haywire. Logging is the eyes, ears, and mouth of our system. It is our saving grace. However, logging traditionally has a dark side. If you've ever used Java or .NET, you'll be well versed in log4j and log4net, and all the excruciatingly painful configurations that go along with it. While logging is extremely useful, setting it up correctly is nothing short of a clinic in patience.

In this chapter, you will learn:

  • How to configure Timbre for logging
  • How to reconfigure one of the appenders configured by Luminus
  • How to configure a new appender from scratch
  • How to emit logging statements
主站蜘蛛池模板: 泸水县| 泰宁县| 长海县| 抚宁县| 桂东县| 新晃| 元朗区| 广汉市| 仁布县| 五大连池市| 娱乐| 通道| 句容市| 湘乡市| 开平市| 留坝县| 常宁市| 汝州市| 井陉县| 靖宇县| 烟台市| 浏阳市| 南城县| 同仁县| 正阳县| 塔河县| 巴林右旗| 安新县| 衡阳县| 年辖:市辖区| 玛曲县| 苗栗县| 邵武市| 洛扎县| 贡山| 喀什市| 泽州县| 平乐县| 柘城县| 三门峡市| 祥云县|