use rustauth_core::context::AuthContext;
use rustauth_core::plugin::PluginDatabaseHookContext;
pub(crate) fn hook_error(context: &PluginDatabaseHookContext<'_>, message: &str, detail: &str) {
context.logger.error(message, &[detail]);
}
pub(crate) fn hook_warn(context: &PluginDatabaseHookContext<'_>, message: &str, detail: &str) {
context.logger.warn(message, &[detail]);
}
pub(crate) fn webhook_error(context: &AuthContext, message: &str) {
context.logger.error(message, &[]);
}
pub(crate) fn webhook_warn(context: &AuthContext, message: &str) {
context.logger.warn(message, &[]);
}
pub(crate) fn webhook_info(context: &AuthContext, message: &str) {
context.logger.info(message, &[]);
}