lib/timber/log_entry.rb in timber-2.0.22 vs lib/timber/log_entry.rb in timber-2.0.23

- old
+ new

@@ -15,11 +15,11 @@ # @param progname [String] the progname scope for the log message # @param message [String] Human readable log message. # @param context_snapshot [Hash] structured data representing a snapshot of the context at # the given point in time. # @param event [Timber.Event] structured data representing the log line event. This should be - # an instance of `Timber.Event`. + # an instance of {Timber.Event}. # @return [LogEntry] the resulting LogEntry object def initialize(level, time, progname, message, context_snapshot, event, options = {}) @level = level @time = time.utc @progname = progname @@ -90,12 +90,12 @@ if !event.nil? event_hash = event.as_json event_type = event_hash.keys.first event_type = if event.is_a?(Events::Custom) - "event:#{event_type}.#{event.type}" + "#{event_type}.#{event.type}" else - "event:#{event_type}" + "#{event_type}" end log_message = "#{message} [#{event_type}]" end \ No newline at end of file