I use coderunner to debug server code. However, sometimes my function does not seem to do all what I try to do (might be timeouts). I’d like to create some logs to see what exactly is going on.
However, using the suggested approach from the documentation I could not get it to work.
Below is code for a timer function which I fire in the dashboard>businesslogic>timers>debug>run
I expect a log file in the files section, or in the manage>log management. However there is nothing there.
Am I missing something?
@BackendlessTimer("{'startDate':1478905200000,'frequency':{'schedule':'custom','repeat':{'every':3600}},'timername':'hourly'}")
public class HourlyTimer extends com.backendless.servercode.extension.TimerExtender
{
@Override
public void execute(String appVersionId) throws Exception
{
bar();
}
public static void bar()
{
Logger log = Logger.getLogger( HourlyTimer.class );
LogBuffer.getInstance().setLogReportingPolicy( 1, 0 );
log.debug( "start bar");
...
log.debug( "end bar");
}
}