# File activestorage/lib/active_storage/log_subscriber.rb, line 21defpreview(event)
infoevent, color("Previewed file from key: #{key_in(event)}", BLUE)
end
# File activestorage/lib/active_storage/log_subscriber.rb, line 26defservice_delete(event)
infoevent, color("Deleted file from key: #{key_in(event)}", RED)
end
# File activestorage/lib/active_storage/log_subscriber.rb, line 31defservice_delete_prefixed(event)
infoevent, color("Deleted files by key prefix: #{event.payload[:prefix]}", RED)
end
# File activestorage/lib/active_storage/log_subscriber.rb, line 14defservice_download(event)
infoevent, color("Downloaded file from key: #{key_in(event)}", BLUE)
end
# File activestorage/lib/active_storage/log_subscriber.rb, line 36defservice_exist(event)
debugevent, color("Checked if file exists at key: #{key_in(event)} (#{event.payload[:exist] ? "yes" : "no"})", BLUE)
end
# File activestorage/lib/active_storage/log_subscriber.rb, line 41defservice_url(event)
debugevent, color("Generated URL for file at key: #{key_in(event)} (#{event.payload[:url]})", BLUE)
end