:: Version 3.0.0 ::

iTop logs channels

Since iTop 2.7.0, logs can be made using a channel. That allows to set distinct levels per channel : this is super useful if you need more details on something and don't want all your logs to become overloaded !

This page aims to detail the existing channels and the corresponding logs. To learn more about logs see iTop logs

constants

๐Ÿ†• Since iTop 2.7.5

Channels value can be found in the LogChannels class. This allow to pick channel uses more easily !

console

๐Ÿ†• Since iTop 3.0.0, the \LogChannels::CONSOLE (console) channel is used for various console frontend errors.

File Level Channel Source
error.log \LogAPI::LEVEL_DEBUG \LogChannels::CONSOLE UI.php

portal

๐Ÿ†• Since iTop 2.7.5, the \LogChannels::PORTAL (portal) channel is used.

File Level Channel Source
error.log \LogAPI::LEVEL_DEBUG \LogChannels::PORTAL \Combodo\iTop\Portal\Controller\ManageBrickController::GetData
error.log \LogAPI::LEVEL_DEBUG \LogChannels::PORTAL \Combodo\iTop\Portal\Controller\BrowseBrickController::DisplayAction

CLI

๐Ÿ†• Since iTop 3.0.0, the \LogChannels::CLI (CLI) channel is used for PHP version checks.

File Level Channel Source
error.log \LogAPI::LEVEL_ERROR \LogChannels::CLI \SetupUtils::CheckPhpAndExtensionsForCli

core

๐Ÿ†• Since iTop 2.7.5, the \LogChannels::CMDB_SOURCE channel is used for queries traces.

File Level Channel Source
error.log \LogAPI::LEVEL_TRACE \LogChannels::CMDB_SOURCE \CMDBSource::DBQuery()
error.log \LogAPI::LEVEL_TRACE \LogChannels::CMDB_SOURCE \CMDBSource::StartTransaction()
error.log \LogAPI::LEVEL_TRACE \LogChannels::CMDB_SOURCE \CMDBSource::Commit()
error.log \LogAPI::LEVEL_TRACE \LogChannels::CMDB_SOURCE \CMDBSource::Rollback()

DB deadlocks

๐Ÿ†• Since iTop 2.7.1 (see PR #139) we added 3 new channels.

File Level Channel Source
error.log \LogAPI::LEVEL_ERROR \LogChannels::DEADLOCK \CMDBSource::LogDeadLock
deadlocks.log \LogAPI::LEVEL_INFO \DeadLockLog::CHANNEL_WAIT_TIMEOUT \CMDBSource::LogDeadLock
deadlocks.log \LogAPI::LEVEL_INFO \DeadLockLog::CHANNEL_DEADLOCK_FOUND \CMDBSource::LogDeadLock

InlineImage

๐Ÿ†• Since iTop 2.7.1, debug info for inline images integration.

File Level Channel Source
error.log \LogAPI::LEVEL_TRACE \LogChannels::INLINE_IMAGE ajax.render.php operation=cke_img_upload
error.log \LogAPI::LEVEL_TRACE \LogChannels::INLINE_IMAGE ajax.render.php operation=cke_upload_and_browse
error.log \LogAPI::LEVEL_TRACE \LogChannels::INLINE_IMAGE \InlineImage::AfterDelete
error.log \LogAPI::LEVEL_TRACE \LogChannels::INLINE_IMAGE \InlineImage::AfterInsert
error.log \LogAPI::LEVEL_TRACE \LogChannels::INLINE_IMAGE \InlineImage::AfterUpdate
error.log \LogAPI::LEVEL_TRACE \LogChannels::INLINE_IMAGE \InlineImage::FinalizeInlineImages
error.log \LogAPI::LEVEL_TRACE \LogChannels::INLINE_IMAGE \InlineImage::OnFormCancel

iTop objects class

Since iTop 2.7.1.

Example iTop classes values : UserRequest, Incident, Server, โ€ฆ

File Level Channel Source
error.log \LogAPI::LEVEL_ERROR <iTop object class> \ConfigPlaceholdersResolver::Get
error.log \LogAPI::LEVEL_TRACE <iTop object class> UI.php operation=apply_modify
error.log \LogAPI::LEVEL_TRACE <iTop object class> UI.php operation=apply_new
error.log \LogAPI::LEVEL_TRACE <iTop object class> ajax.render.php operation=on_form_cancel

Deprecated calls

๐Ÿ†• Since iTop 3.0.0 (PR #193), module developers can locate calls to deprecated PHP methods / files

Calls are logged using \DeprecatedCallsLog impl using 2 helper methods :

File Level Channel Source
deprecated-calls.log \LogAPI::LEVEL_WARNING \DeprecatedCallsLog::ENUM_CHANNEL_PHP_METHOD \DeprecatedCallsLog::NotifyDeprecatedPhpMethod
deprecated-calls.log \LogAPI::LEVEL_WARNING \DeprecatedCallsLog::ENUM_CHANNEL_FILE \DeprecatedCallsLog::NotifyDeprecatedFile

If you're using a Combodo build :

  • default log level will be ERROR

Else if you're using a direct GitHub clone (in other words \utils::IsDevelopmentEnvironment returns true) :

  • default log level will be DEBUG
  • whenever we log a trigger_error() call will be made using the E_USER_DEPRECATED flag

Log level can be customized in the config.

3_0_0/admin/log/channels.txt ยท Last modified: 2021/07/06 15:44 (external edit)
Back to top
Contact us