public final class SntpLog extends Object
EventManager.The SntpLog.Severity enum carries, on each constant, the matching EVENT_*_SNTP event ID from EventID; the log(co.mindus.time.ntp.SntpLog.Severity, java.lang.String, java.lang.Throwable) method logs to EventManager using that ID. Keeping the ID on the enum (rather than in a separate bridge) means the severity and its event ID are defined in one place, and a caller only chooses a Severity. The enum's ordinal also reflects the level order (INFO < WARNING < ERROR).
Because it logs straight to EventManager, this class depends on the NetPhantom server (unlike the otherwise pure-JDK co.mindus.time.ntp classes). The poller calls it only for notable state transitions, so the event log is not flooded.
(C) Copyright 2026 Mindus SARL. All rights reserved.
| Modifier and Type | Class and Description |
|---|---|
static class | SntpLog.SeverityLogging severity. |
| Modifier and Type | Method and Description |
|---|---|
static void | log(SntpLog.Severity severity, String message, Throwable error)Logs a message to the server EventManager under the event ID carried by the severity. |
public static void log(SntpLog.Severity severity, String message, Throwable error)
EventManager under the event ID carried by the severity.severity - The severity (never null).message - The message (never null).error - An optional throwable whose stack trace is appended, or null.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.