Help Docs

MonoLog Logs

MonoLog, a PHP library based on the PSR-3 standard, supports various levels of logging for PHP applications. If you're using file handlers to write logs to files, then you can monitor those logs using Site24x7 AppLogs.  Learn more about log management with Site24x7

Getting started

  1. Log in to your Site24x7 account.
  2. Download and install the Site24x7 Server Monitoring agent (Windows | Linux). 
  3. Go to Admin > AppLogs > Log Profile and Add Log Profile.

Log file path

To manage your PHP application logs configured with the MonoLog framework, you just need to create a Log Profile and define the Log Type as MonoLog. 

The source path is the path configured in your MonoLog logger.

Log pattern

[$DateTime:date$] $Channel$.$LogLevel$: $Message$

This is the default pattern defined by Site24x7 to parse MonoLogs. If you follow a different format, then edit the Log Type and correct the pattern.

Sample log

[2018-05-06 11:54:23] default.INFO: This is a log entry!

This log is separated into fields, each of which will take its respective value and be uploaded to Site24x7.

Field name Field value
DateTime  2018-05-06 11:54:23
Channel default
LogLevel INFO
Message This is a log entry!

Was this document helpful?

Would you like to help us improve our documents? Tell us what you think we could do better.


We're sorry to hear that you're not satisfied with the document. We'd love to learn what we could do to improve the experience.


Thanks for taking the time to share your feedback. We'll use your feedback to improve our online help resources.

Shortlink has been copied!