overrunning openmrs.log file

you can configure a custom log file and also set the log level for the api plus any other module,this is located at system administration → advanced adminsitration → Maintenance → settings-> log

some resource: Change OpenMRS log level