Skip to content

[5.x]: Error message logging not working #14863

@bencroker

Description

@bencroker

What happened?

Calling Craft::error() appears to have no effect in Craft 5.0.5.

Steps to reproduce

  1. Enable devMode.
  2. In a custom module, call Craft::error('Test error') and Craft::info('Test info') in the init() method.
  3. Visit the site.
  4. Open the web-****-**-**.log file.

Expected behavior

Both test messages should be written to the log file.

[web.ERROR] [application] Test error
[web.INFO] [application] Test info

Actual behaviour

Only the info message is written to the log file.

[web.INFO] [application] Test info

Craft CMS version

5.0.5

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions