Package com.wowza.wms.logging
Class LogNotifyCalculateIncremental
- Object
- 
- com.wowza.wms.logging.LogNotifyCalculateIncremental
 
- 
- All Implemented Interfaces:
- ILogNotify
 
 public class LogNotifyCalculateIncremental extends Object implements ILogNotify LogNotifyCalculateIncremental: pre-built implementation of ILogNotify that adds 5 new log fields: - cs-bytes-inc (client to server bytes streamed since last log entry)
- sc-bytes-inc (server to client bytesstreamed since last log entry)
- cs-stream-bytes-inc (client to server stream bytesstreamed since last log entry)
- sc-stream-bytes-inc (server to client stream bytesstreamed since last log entry)
- x-duration-inc (time in seconds that have passed since the last log event)
 These are incremental versions of the regular log values. To add this to Wowza Pro edit: - [install-dir]/bin/setenv.bat (Windows)
- [install-dir]/bin/setenv.sh (Linux, OSX)
 Add -Dcom.wowza.wms.logging.LogNotify=com.wowza.wms.logging.LogNotifyCalculateIncremental to the JAVA_OPTS. Also, edit [install-dir]/conf/log4j.properties and add these field names to any log4j.appender.[appender-name].layout.Fields fields lists to which you want to log these values. NOTE: These new log values are only accurate if all the events are included for the session and stream log categories. 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringFD_cs_bytes_incstatic StringFD_cs_stream_bytes_incstatic StringFD_sc_bytes_incstatic StringFD_sc_stream_bytes_incstatic StringFD_x_duration_inc
 - 
Constructor SummaryConstructors Constructor Description LogNotifyCalculateIncremental()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonLog(org.apache.logging.log4j.Level level, String comment, IMediaStream stream, String category, String event, int status, String context)Called each time the server logs a message.- 
Methods inherited from class java.lang.Objectclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.wowza.wms.logging.ILogNotifyonLog
 
- 
 
- 
- 
- 
Field Detail- 
FD_cs_bytes_incpublic static final String FD_cs_bytes_inc - See Also:
- Constant Field Values
 
 - 
FD_sc_bytes_incpublic static final String FD_sc_bytes_inc - See Also:
- Constant Field Values
 
 - 
FD_cs_stream_bytes_incpublic static final String FD_cs_stream_bytes_inc - See Also:
- Constant Field Values
 
 - 
FD_sc_stream_bytes_incpublic static final String FD_sc_stream_bytes_inc - See Also:
- Constant Field Values
 
 - 
FD_x_duration_incpublic static final String FD_x_duration_inc - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
onLogpublic void onLog(org.apache.logging.log4j.Level level, String comment, IMediaStream stream, String category, String event, int status, String context)Description copied from interface:ILogNotifyCalled each time the server logs a message.- Specified by:
- onLogin interface- ILogNotify
- Parameters:
- level- log level as defined by (org.apache.logging.log4j.Level)
- comment- comment part of the log statement
- stream- if stream category log message it's the source stream
- category- log category as defined by WMSLoggerIDs.CAT_*
- event- log event as defined by WMSLoggerIDs.EVT_*
- status- log status (same as HTTP status field) as defined by WMSLoggerIDs.STAT_*
- context- log context value like stream name, vhost name, application name
 
 
- 
 
-