Companion

object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun CleanupOldFiles(DaysOld: Double)

clears log files that are beyond a passed number of days old

Link copied to clipboard
fun EnableLogging(enable: Boolean)

TRUE: Creates a file handler that will log message to a file. FALSE: logging just goes to console.

Link copied to clipboard
fun Entering(sourceClass: String, sourceMethod: String)

Log a method entry.

fun Entering(sourceClass: String, sourceMethod: String, param1: JsAny?)

Log a method entry, with one parameter.

fun Entering(sourceClass: String, sourceMethod: String, params: JsArray<JsAny?>)

Log a method entry, with an array of parameters.

Link copied to clipboard
fun Exiting(sourceClass: String, sourceMethod: String)

Log a method return.

fun Exiting(sourceClass: String, sourceMethod: String, result: JsAny?)

Log a method return, with result object.

Link copied to clipboard

Gets the java.util.logging.Level that the logger is set to.

Link copied to clipboard

True if logging is enabled

Link copied to clipboard

Takes a throwable and puts it's stacktrace into a string.

Link copied to clipboard
fun LogException(sourceClass: String, sourceMethod: String, exc: JsAny)
fun LogException(sourceClass: String, sourceMethod: String, exc: JsAny, lvl: LogLevel)
fun LogException(sourceClass: String, sourceMethod: String, exc: JsAny, showMessageBox: Boolean)
fun LogException(sourceClass: String, sourceMethod: String, exc: JsAny, lvl: LogLevel, showMessageBox: Boolean)
Link copied to clipboard
fun LogMessage(message: String)
fun LogMessage(message: String, showMessageBox: Boolean)

Defaults to Level.INFO

fun LogMessage(message: String, lvl: LogLevel, showMessageBox: Boolean)
fun LogMessage(sourceClass: String, sourceMethod: String, message: String)
fun LogMessage(sourceClass: String, sourceMethod: String, message: String, lvl: LogLevel)
fun LogMessage(sourceClass: String, sourceMethod: String, message: String, showMessageBox: Boolean)
fun LogMessage(sourceClass: String, sourceMethod: String, message: String, lvl: LogLevel, showMessageBox: Boolean)
fun LogMessage(sourceClass: String, sourceMethod: String, message: String, lvl: LogLevel, param1: JsAny?, showMessageBox: Boolean)
fun LogMessage(sourceClass: String, sourceMethod: String, message: String, lvl: LogLevel, params: JsArray<JsAny?>, showMessageBox: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setLevel(newLevel: LogLevel)
fun setLevel(newLevel: LogLevel, setConsoleHandler: Boolean)

Set minimum level at which an item can be logged. In descending order: Severe Warning Info Config Fine Finer Finest

Link copied to clipboard

Folder location to store the log file. Defaults to "System.getProperty("user.dir")"

Link copied to clipboard
fun setUseParentHandlers(useParentHandlers: Boolean)

Specify whether or not this logger should send its output to it's parent Logger. This means that any LogRecords will also be written to the parent's Handlers, and potentially to its parent, recursively up the namespace. Defaults to true;