import java.util.logging.Logger; public class MyClass { private static final Logger logger = Logger.getLogger(MyClass.class.getName()); public void myMethod() { logger.info("This is an information message."); } }In this example, we create a Logger object for our class using the `Logger.getLogger()` method. Then, we call the `info()` method to log an information-level message within the `myMethod()` method. The `Logger` class is part of the Java Standard Library, specifically within the `java.util.logging` package.