Overview

Packages

  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Datatype
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cLog
  • cLogWriter
  • cLogWriterFile
  • cModuleLog
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class cModuleLog

This class contains the main functionalities for the module logging in CONTENIDO. The funcationality is almost the same like normal logging with the exception, that log entries contains an additional information about the used module.

Example: $writer = cLogWriter::factory("File", array('destination' => 'contenido.log'));

$log = new cModuleLog($writer); $log->setModule(1); $log->log("Anything you want to log.");

cLog
Extended by cModuleLog
Package: Core\Log
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Dominik Ziegler
Located at classes/log/class.modulelog.php
Methods summary
public
# __construct( mixed $writer = false )

Constructor of the module log.

Constructor of the module log.

Parameters

$writer
mixed
$writer Writer object (any subclass of cLogWriter), or false if cLog should handle the writer creation

Overrides

cLog::__construct()
public
# setModule( integer $idmod )

Sets the module to use.

Sets the module to use.

setModule automatically buffers basic module information to the log to assist the developer in debugging his modules.

Parameters

$idmod
integer
$idmod The module ID to use

Throws

cException
if the module with the given idmod could not be loaded
public string
# shModule( )

Shortcut Handler Module. Returns the ID and the name of the module.

Shortcut Handler Module. Returns the ID and the name of the module.

Returns

string
ID and name of the module
Methods inherited from cLog
__call(), addPriority(), buffer(), commit(), getWriter(), log(), removePriority(), revoke(), setShortcutHandler(), setWriter(), shDate(), shLevel(), shMessage(), unsetShortcutHandler()
Constants inherited from cLog
ALERT, CRIT, DEBUG, EMERG, ERR, INFO, NOTICE, WARN
Properties summary
private cApiModule $_module
#

instance of module model

instance of module model

Properties inherited from cLog
$_buffer, $_defaultPriorities, $_priorities, $_shortcutHandlers, $_writer
CMS CONTENIDO 4.9.5 API documentation generated by ApiGen 2.8.0