Step 1: Logs

Logging inside the code

Innomatic Platform provides a facility for logging inside standard Innomatic log files with the Innomatic\Logging\LogCenter class.

 

$log = new \Innomatic\Logging\LogCenter(‘myapp’);
$log->logEvent([‘root’], ‘myroutine’, ‘There was an error’);

You can also log inside your own log file with the Innomatic\Logging\Logger class.

$log = new \Innomatic\Logging\Logger(‘path_to_logfile.log’);
$log->logEvent(‘myroutine’, ‘There was an error’, \Innomatic\Logging\Logger::ERROR);

Main log

Innomatic main log is accessible at innomatic/core/log/innomatic.log and contains operations logging, generic applications debugging, etc.

Root database log

When there are errors in the Innomatic root database the queries are logged in innomatic/core/log/innomatic_root_db.log. Innocoder Debugger provides a view to access this log.

Tenants log

You can also access tenant logs (operations and database) from inside Innomatic Tenants panel, without Innocoder Debugger.

Example for a tenant operations log:

Example for a tenant database log:

Other standard logs

Innomatic Platform supports other standard logs:

  • Applications: found for each application inside innomatic/core/applications/<application_name>/application.log
  • PHP: innomatic/core/log/php.log
  • Web Services: innomatic/core/log/webservices.log
  • Access: innomatic/core/log/access.log

Next: Step 2: Profiling