Code example for LogRecord

Methods: setLoggerName

0
     * @param warning The warning to log. 
     */ 
    protected void logWarning(final LogRecord warning) {
        if (logger != null) {
            final Logger logger = Logging.getLogger(this.logger);
            warning.setLoggerName(logger.getName());
            logger.log(warning);
        } 
    } 
 
    /** 
     * Returns the locale to use for formatting warnings. The default implementation returns 
     * the {@linkplain Locale#getDefault() default locale}. 
     */ 
    protected Locale getWarningLocale() {
        return Locale.getDefault();
    } 
 
    /** 
     * Formats an error message for an unparsable string. This method performs the same work that 
Experience pair programming with AI  Get Codota for Java