lib/lazylead/log.rb in lazylead-0.5.1 vs lib/lazylead/log.rb in lazylead-0.5.2
- old
+ new
@@ -21,10 +21,11 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
# OR OTHER DEALINGS IN THE SOFTWARE.
require "logging"
+require "colorize"
require "forwardable"
module Lazylead
# The main application logger
class Log
@@ -66,10 +67,10 @@
date: :blue,
logger: :cyan)
Logging.appenders.stdout(
"stdout",
layout: Logging.layouts.pattern(
- pattern: "[%d] %-5l [%X{tid}] %m\n",
+ pattern: "[%d] %-5l #{'[%X{tid}]'.colorize(:light_green)} %m\n",
color_scheme: "bright"
)
)
# Nothing to log