Sha256: e7efa70c09f7685500976d57ca5fb38453901f78847cdcf7e9a265ec4a9555ff
Contents?: true
Size: 423 Bytes
Versions: 15
Compression:
Stored size: 423 Bytes
Contents
# frozen_string_literal: true require "logger" module Bridgetown module Rack class Logger < Logger def self.message_with_prefix(msg) return if msg.include?("/_bridgetown/live_reload") "\e[35m[Server]\e[0m #{msg}" end def initialize(*) super @formatter = proc do |_, _, _, msg| self.class.message_with_prefix(msg) end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems