[Typo3-dev] using devLog instead of debug in the core?

René Fritz r.fritz at colorcube.de
Mon Jan 31 15:23:22 CET 2005


> Martin T. Kutschker wrote:
> > Where should devLog be used? And how should it be triggered?

As Kasper already said there are some parts of the core where debug() simply 
do not work or prevent the core from working. That's so with user 
authentication.

You can use the CCDevlog extension - if you like - to show the log. I included 
some documentation that suggests to use dev logging like this


class t3lib_userAuth {

    // write messages into the devlog?
var $writeDevLog = FALSE;

function start() {
    global $TYPO3_CONF_VARS;
    
        // enable dev logging if set
    if ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']
['writeDevLog']) 
        $this->writeDevLog = TRUE;
    if (TYPO3_DLOG) $this->writeDevLog = TRUE;
    
    ...
    
    if ($this->writeDevLog AND !is_array($this->user)) 
        t3lib_div::devLog('No user session found.', 't3lib_userAuth', 2);



That do not answer all your questions ...

René

-- 
COLORCUBE
digital media lab

www.colorcube.de




More information about the TYPO3-dev mailing list