Skip to content

Logger option for lifecycle announcementΒ #1551

Closed
@relip

Description

We use Logstash for logging solution and it requires their own log formats. However, Sinatra only prints startup/shutdown log to$stderr which no alternative options available on formatting and logging target.

$stderr.puts "== Sinatra (v#{Sinatra::VERSION}) has taken the stage on #{port} for #{environment} with backup from #{handler_name}"

$stderr.puts "== Sinatra has ended his set (crowd applauds)" unless suppress_messages?

$stderr.puts "== Someone is already performing on port #{port}!"

I found an old PR with tagged 2.1.0 that adds the ability to disable LC logs, maybe this feature can be added to that?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions