Skip to main content

Deserted Chateau Loggers

Deserted Chateau uses the PHP monolog library for logging. The Antsstyle\DesertedChateau\Core\LogManager class initialises and configures all of the various loggers used in the backend code.

Logger Configuration

Each logger is configured to log to five files, corresponding to PSR-3 log levels:

  • <channel_name>.debug.log: DEBUG messages only.
  • <channel_name>.warn.log: WARN messages only.
  • <channel_name>.error.log: ERROR messages only.
  • <channel_name>.debug.log: CRITICAL messages only.
  • <channel_name>.all.log: All messages for this log channel.

In addition, all loggers except the primary logger also send their messages to the primary log channel.

Available Loggers

See the LogManager class for a full list of available loggers, but the main ones are below.

LogManager object (channel name) Notes
primaryLogger (primary) Receives all messages from other loggers, as well as any log messages directed specifically to it.
databaseLogger (database) For all database log messages.
awsLogger (aws) For all Amazon Web Services (AWS) log messages.
webLogger (web) For all frontend PHP page log messages.
webhookLogger (webhook) For all webhook log messages, e.g. Bunny Stream webhook, but not the Stripe webhook.
stripeLogger (stripe) For all Stripe log messages, including the Stripe webhook.
cronjobLogger (cronjob) For all cronjob log messages.
submissionLogger (submission) For all log messages from the SubmitArtwork form handler, as the artwork submission process is rather complex.