com.memority.toolkit.rule.log.api.ApiRuleLogger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of toolkit-rule-log-api Show documentation
Show all versions of toolkit-rule-log-api Show documentation
This artifact provides the API classes that are necessary to perform log operations in Memority configuration Rules.
/*
* Copyright (c) 2016-2023 Memority. All Rights Reserved.
*
* This file is part of Memority Toolkit API , a Memority project.
*
* This file is released under the Memority Public Artifacts End-User License Agreement,
* see
* Unauthorized copying of this file, via any medium is strictly prohibited.
*/
package com.memority.toolkit.rule.log.api;
import org.slf4j.Logger;
/**
* The "LOG" api available in script rules. It is a standard {@link Logger}
* augmented with "audit()" methods which send the messages as info level log
* to the audit service.
*/
public interface ApiRuleLogger extends Logger {
void audit(String msg);
void audit(String format, Object arg);
void audit(String format, Object arg1, Object arg2);
void audit(String format, Object... arguments);
void audit(String msg, Throwable t);
boolean isAuditEnabled();
}