Skip to main content
Version: v4

Notifications

Change notifications

  • Objet: getARenderJS()

    functionDescriptionArguments
    registerNotifyLogEvent(hook)Trigger a hook function when a notification is displayedhook: The hook function to call

The following functions allow to alterate the received notification event caught by the hook function.

  • Object: getARenderJS()

    FunctionDescriptionArgument
    setLogEventMessage(event, message)Change the notification message by "message"event: The notification event;
    message: the new message
    setLogEventDisplay(event, boolean)Allow the notification displayevent: The notification event;
    boolean: Display the notification if true, hide it if false
    setLogEventLevel(event, level)Change the notification levelevent: The notification event;
    level: the new level ("SEVERE", "WARNING", "INFO", "CONFIG", "FINE", "FINER", ou "FINEST")
getARenderJS().registerNotifyLogEvent(function(event, level, message){
getARenderJS().setLogEventMessage(event, "Error: " + message);
getARenderJS().setLogEventLevel(event, "SEVERE");
getARenderJS().setLogEventDisplay(event, true);
});