Create a new log file every hour?

Is there a way to change the log file schedule to create a new log file hourly instead of once a day?

Or you can just change this line (in conf/log4j.properties) from:

log4j.appender.serverAccess.DatePattern=’.'yyyy-MM-dd

to:

log4j.appender.serverAccess.DatePattern=’.'yyyy-MM-dd.HH

Charlie

Refer to this guide:

https://www.wowza.com/docs/how-to-configure-log-rolling-by-time-and-size

Richard

Do I also have to set this to hourly? If so, what file? DAILY would be HOURLY?

log4j.appender.[appender]=server.utils.CompressingRollingFileAppender

log4j.appender.[appender].Period=DAILY

hello

i am using wowza 3.0.4 , could anyone tell me how to rorate the log daily ??

it seems like if there have no request until that day the log wuldnt be rotated. i wont to do

it by forcing wowza to rotare the logs daily at 00:00…

i am using log4j-1.2.16.jar

and also tried log4j-rolling-appender-20100717-1237-1.2.15 with the above settings , but it doeesnt work

#log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_access=org.apache.log4j.appender.TimeAndSizeRollingAppender

#log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_access.DateRollEnforced=true

#log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_access.DatePattern=’.'yyyy-MM-dd

#log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_access.MaxRollFileCount=-1

any idea???