src/share/jaxws_classes/com/sun/istack/internal/logging/Logger.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 29,39 **** import java.util.StringTokenizer; import java.util.logging.Level; /** ! * This is a helper class that provides some conveniece methods wrapped around the * standard {@link java.util.logging.Logger} interface. * * The class also makes sure that logger names of each Metro subsystem are consistent * with each other. * --- 29,39 ---- import java.util.StringTokenizer; import java.util.logging.Level; /** ! * This is a helper class that provides some convenience methods wrapped around the * standard {@link java.util.logging.Logger} interface. * * The class also makes sure that logger names of each Metro subsystem are consistent * with each other. *
*** 127,136 **** --- 127,150 ---- return; } logger.logp(level, componentClassName, getCallerMethodName(), message); } + public void log(final Level level, final String message, Object param1) { + if (!this.logger.isLoggable(level)) { + return; + } + logger.logp(level, componentClassName, getCallerMethodName(), message, param1); + } + + public void log(final Level level, final String message, Object[] params) { + if (!this.logger.isLoggable(level)) { + return; + } + logger.logp(level, componentClassName, getCallerMethodName(), message, params); + } + public void log(final Level level, final String message, final Throwable thrown) { if (!this.logger.isLoggable(level)) { return; } logger.logp(level, componentClassName, getCallerMethodName(), message, thrown);
*** 141,150 **** --- 155,171 ---- return; } logger.logp(Level.FINEST, componentClassName, getCallerMethodName(), message); } + public void finest(final String message, Object[] params) { + if (!this.logger.isLoggable(Level.FINEST)) { + return; + } + logger.logp(Level.FINEST, componentClassName, getCallerMethodName(), message, params); + } + public void finest(final String message, final Throwable thrown) { if (!this.logger.isLoggable(Level.FINEST)) { return; } logger.logp(Level.FINEST, componentClassName, getCallerMethodName(), message, thrown);
*** 155,164 **** --- 176,192 ---- return; } logger.logp(Level.FINER, componentClassName, getCallerMethodName(), message); } + public void finer(final String message, Object[] params) { + if (!this.logger.isLoggable(Level.FINER)) { + return; + } + logger.logp(Level.FINER, componentClassName, getCallerMethodName(), message, params); + } + public void finer(final String message, final Throwable thrown) { if (!this.logger.isLoggable(Level.FINER)) { return; } logger.logp(Level.FINER, componentClassName, getCallerMethodName(), message, thrown);
*** 183,192 **** --- 211,227 ---- return; } logger.logp(Level.INFO, componentClassName, getCallerMethodName(), message); } + public void info(final String message, Object[] params) { + if (!this.logger.isLoggable(Level.INFO)) { + return; + } + logger.logp(Level.INFO, componentClassName, getCallerMethodName(), message, params); + } + public void info(final String message, final Throwable thrown) { if (!this.logger.isLoggable(Level.INFO)) { return; } logger.logp(Level.INFO, componentClassName, getCallerMethodName(), message, thrown);
*** 197,206 **** --- 232,248 ---- return; } logger.logp(Level.CONFIG, componentClassName, getCallerMethodName(), message); } + public void config(final String message, Object[] params) { + if (!this.logger.isLoggable(Level.CONFIG)) { + return; + } + logger.logp(Level.CONFIG, componentClassName, getCallerMethodName(), message, params); + } + public void config(final String message, final Throwable thrown) { if (!this.logger.isLoggable(Level.CONFIG)) { return; } logger.logp(Level.CONFIG, componentClassName, getCallerMethodName(), message, thrown);
*** 211,220 **** --- 253,269 ---- return; } logger.logp(Level.WARNING, componentClassName, getCallerMethodName(), message); } + public void warning(final String message, Object[] params) { + if (!this.logger.isLoggable(Level.WARNING)) { + return; + } + logger.logp(Level.WARNING, componentClassName, getCallerMethodName(), message, params); + } + public void warning(final String message, final Throwable thrown) { if (!this.logger.isLoggable(Level.WARNING)) { return; } logger.logp(Level.WARNING, componentClassName, getCallerMethodName(), message, thrown);
*** 225,234 **** --- 274,290 ---- return; } logger.logp(Level.SEVERE, componentClassName, getCallerMethodName(), message); } + public void severe(final String message, Object[] params) { + if (!this.logger.isLoggable(Level.SEVERE)) { + return; + } + logger.logp(Level.SEVERE, componentClassName, getCallerMethodName(), message, params); + } + public void severe(final String message, final Throwable thrown) { if (!this.logger.isLoggable(Level.SEVERE)) { return; } logger.logp(Level.SEVERE, componentClassName, getCallerMethodName(), message, thrown);