I have the following code:
package com.wowza.wms.example.module; import org.apache.log4j.Level; import com.wowza.wms.logging.*; import com.wowza.wms.stream.IMediaStream; public class NewLogFields implements ILogNotify { public void onLog(Level level, String comment, IMediaStream stream, String category, String event, int status, String context) { long systime = System.currentTimeMillis(); WMSLoggerFactory.putGlobalLogValue("systime-long", new Long(systime)); } }
that provides the variable 'systime-long' with the date output of
but instead I would like the output to be like1278538830508
I have found that 'SimpleDateFormat' might work for me with the date format of[07/Jul/2010:16:45:28 -0400]
but I unfortunately am not Java savvy.[d/MMM/yyyy:HH:mm:ss Z]
Can anyone help with with this?
Thanks in advance.