Log.fatal
fatal($stringOrMap) -> self
Description
Appends an FATAL
level message to data/logs/app.log
as a line of JSON.
Log.fatal('Hello Log') // {"date":"2024-09-18 00:14:37","level":"FATAL","url":"/your/page",message":"Hello Log"}}
You can also pass in a Map of data, which will be serialized and merged with the event data.
Log.fatal({ userId: 1234, event: 'loggedIn' }) // {"date":"2024-09-18 00:14:37","level":"FATAL","url":"/your/page","userId":1234,"event":"loggedIn"}}