[TYPO3-dev] How to write to log ?

Mattias Nilsson tollepjaer at gmail.com
Mon Aug 26 13:59:21 CEST 2013


Hi Juan,

You can use it like this:

$msg = 'My error';
t3lib_div::sysLog($msg, 'myextensionkey', 3(This is an integer seting
the severity of the log entry));



/Matitas


On Mon, Aug 26, 2013 at 1:18 PM, Juan Asencio <jao at dmi.dk> wrote:

> Hello everybody,
>
> We are developing an extension and we would like to write a message to the
> typo3 log table if its an error on the extension.
>
> Any suggestion how to accomplished this, would be highly appreciated :)
>
> Best regards,
>
> Juan.-
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
>



More information about the TYPO3-dev mailing list