/** * This file is auto generated from JavaDoc. Do not modify it manually. */ import type { String } from "../../types/java/lang/String"; import type { Throwable } from "../../types/java/lang/Throwable"; /** * Logging utility class for simple logging to the Sitevision server log. *

* If you implement a custom portlet you would typically use a logging framework, not this class. *

* *

* An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getLogUtil()}. * See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the Utils interface. *

* @author Magnus Lövgren */ export interface LogUtil { /** * Checks if trace logging is enabled. * *

* Appropriate to check first if you are about to do extensive/expensive trace logging. *

* @return true if trace logging is enabled, false otherwise * @since Sitevision 4.1 */ isTraceEnabled(): boolean; /** * Logs a trace message to the Sitevision server log. * @param aMessage a message. * @since Sitevision 4.1 */ trace(aMessage: String | string): void; /** * Logs a trace message to the Sitevision server log. * @param aMessage a message. * @param aThrowable a throwable. * @since Sitevision 4.1 */ trace(aMessage: String | string, aThrowable: Throwable): void; /** * Checks if debug logging is enabled. * *

* Appropriate to check first if you are about to do extensive/expensive debug logging. *

* @return true if debug logging is enabled, false otherwise * @since Sitevision 3.0 */ isDebugEnabled(): boolean; /** * Logs a debug message to the Sitevision server log. * @param aMessage a message. */ debug(aMessage: String | string): void; /** * Logs a debug message to the Sitevision server log. * @param aMessage a message. * @param aThrowable a throwable. */ debug(aMessage: String | string, aThrowable: Throwable): void; /** * Checks if info logging is enabled. * *

* Appropriate to check first if you are about to do extensive/expensive info logging. *

* @return true if info logging is enabled, false otherwise * @since Sitevision 4.1 */ isInfoEnabled(): boolean; /** * Logs an info message to the Sitevision server log. * @param aMessage a message. */ info(aMessage: String | string): void; /** * Logs an info message to the Sitevision server log. * @param aMessage a message. * @param aThrowable a throwable. */ info(aMessage: String | string, aThrowable: Throwable): void; /** * Checks if warn logging is enabled. * @return true if warn logging is enabled, false otherwise * @since Sitevision 4.1 */ isWarnEnabled(): boolean; /** * Logs a warn message to the Sitevision server log. * @param aMessage a message. */ warn(aMessage: String | string): void; /** * Logs a warn message to the Sitevision server log. * @param aMessage a message. * @param aThrowable a throwable. */ warn(aMessage: String | string, aThrowable: Throwable): void; /** * Checks if error logging is enabled. * @return true if error logging is enabled, false otherwise * @since Sitevision 4.1 */ isErrorEnabled(): boolean; /** * Logs an error message to the Sitevision server log. * @param aMessage a message. */ error(aMessage: String | string): void; /** * Logs an error message to the Sitevision server log. * @param aMessage a message. * @param aThrowable a throwable. */ error(aMessage: String | string, aThrowable: Throwable): void; } declare namespace LogUtil {} declare var logUtil: LogUtil; export default logUtil;