logging issue

Dear All,

logger is not working.

not able to see the log message in suitecrm.log file…

i have crearted a

class A{

function alpha(){

$GLOBALS[‘log’]->debug(‘This is a debug message’);

}

}

when i call the method alpha… the log is not working…

please guide me…

your help will be much appreciated.

Check your system log mode.

Admin->System Settings-> TAB(Logger Settings)->Log Level

1 Like

thank you i got the log just followed what you said… its working…

now how can i get the class,method and line number in the log…

Sorry, you won’t have such details by default. If you want to log something on your own script. You need to write yourself.