Logging

add file-based application error logging