public final class Logger extends Object
Note: if possible, avoid logging in the global shared context exposed by the utilities of this class,
|Modifier and Type||Method and Description|
public static ILogger getLogger(@Nonnull Class clazz)
loggerfor the given
clazz- the class to obtain the logger for.
public static ILogger getLogger(@Nonnull String name)
loggerof the given
name- the name of the logger to obtain.
public static ILogger noLogger()
public static LoggerFactory newLoggerFactory(String preferredType)
logger factoryinstance of the given preferred type.
The type of the created logger factory doesn't necessarily match the given preferred type. For example, if
hazelcast.logging.class system property is set, the configured logger factory class will be used
despite the given preferred type. Also, if factory instance construction is failed for some reason,
StandardLoggerFactory instance will be returned instead.
preferredType- the preferred type of the logger factory to create.
Copyright © 2022 Hazelcast, Inc.. All rights reserved.