package com.foundation.web.interfaces; /** * Allows the application to log via the web server's UI. */ public interface IAppLog { public static final int TYPE_ERROR = 0; public static final int TYPE_WARNING = 1; public static final int TYPE_INFORMATION = 2; /** * Handles logging a note and/or exception from a web application via the web server's UI. * @param type The log type code. * @param note String An optional note to be logged. If an exception is also specified, then the note should be bundled with the exception in the log output. * @param exception Throwable An optional exception to be logged. */ public void log(int type, String note, Throwable exception); }//IAppLog//