jdk.nashorn.internal.runtime.logging.Loggable Java Examples

The following examples show how to use jdk.nashorn.internal.runtime.logging.Loggable. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Context.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
private void initLoggers() {
    ((Loggable)MethodHandleFactory.getFunctionality()).initLogger(this);
}
 
Example #2
Source File: Context.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
private void initLoggers() {
    ((Loggable)MethodHandleFactory.getFunctionality()).initLogger(this);
}
 
Example #3
Source File: Context.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
private void initLoggers() {
    ((Loggable)MethodHandleFactory.getFunctionality()).initLogger(this);
}
 
Example #4
Source File: Context.java    From jdk8u_nashorn with GNU General Public License v2.0 4 votes vote down vote up
private void initLoggers() {
    ((Loggable)MethodHandleFactory.getFunctionality()).initLogger(this);
}
 
Example #5
Source File: Context.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
private void initLoggers() {
    ((Loggable)MethodHandleFactory.getFunctionality()).initLogger(this);
}
 
Example #6
Source File: Context.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
private void initLoggers() {
    ((Loggable)MethodHandleFactory.getFunctionality()).initLogger(this);
}
 
Example #7
Source File: Context.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
private void initLoggers() {
    ((Loggable)MethodHandleFactory.getFunctionality()).initLogger(this);
}
 
Example #8
Source File: Context.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Given a Loggable class, weave debug info info a method handle for that logger.
 *
 * @param clazz            loggable
 * @param level            log level
 * @param mh               method handle
 * @param paramStart       first parameter to print
 * @param printReturnValue should we print the return value?
 * @param text             debug printout to add
 *
 * @return instrumented method handle, or null if logger not enabled
 */
public MethodHandle addLoggingToHandle(final Class<? extends Loggable> clazz, final Level level, final MethodHandle mh, final int paramStart, final boolean printReturnValue, final Supplier<String> text) {
    final DebugLogger log = getLogger(clazz);
    if (log.isEnabled()) {
        return MethodHandleFactory.addDebugPrintout(log, level, mh, paramStart, printReturnValue, text.get());
    }
    return mh;
}
 
Example #9
Source File: Context.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Given a Loggable class, weave debug info info a method handle for that logger.
 *
 * @param clazz            loggable
 * @param level            log level
 * @param mh               method handle
 * @param paramStart       first parameter to print
 * @param printReturnValue should we print the return value?
 * @param text             debug printout to add
 *
 * @return instrumented method handle, or null if logger not enabled
 */
public MethodHandle addLoggingToHandle(final Class<? extends Loggable> clazz, final Level level, final MethodHandle mh, final int paramStart, final boolean printReturnValue, final Supplier<String> text) {
    final DebugLogger log = getLogger(clazz);
    if (log.isEnabled()) {
        return MethodHandleFactory.addDebugPrintout(log, level, mh, paramStart, printReturnValue, text.get());
    }
    return mh;
}
 
Example #10
Source File: Context.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Given a Loggable class, weave debug info info a method handle for that logger.
 *
 * @param clazz            loggable
 * @param level            log level
 * @param mh               method handle
 * @param paramStart       first parameter to print
 * @param printReturnValue should we print the return value?
 * @param text             debug printout to add
 *
 * @return instrumented method handle, or null if logger not enabled
 */
public MethodHandle addLoggingToHandle(final Class<? extends Loggable> clazz, final Level level, final MethodHandle mh, final int paramStart, final boolean printReturnValue, final Supplier<String> text) {
    final DebugLogger log = getLogger(clazz);
    if (log.isEnabled()) {
        return MethodHandleFactory.addDebugPrintout(log, level, mh, paramStart, printReturnValue, text.get());
    }
    return mh;
}
 
Example #11
Source File: Context.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Given a Loggable class, weave debug info info a method handle for that logger.
 *
 * @param clazz            loggable
 * @param level            log level
 * @param mh               method handle
 * @param paramStart       first parameter to print
 * @param printReturnValue should we print the return value?
 * @param text             debug printout to add
 *
 * @return instrumented method handle, or null if logger not enabled
 */
public MethodHandle addLoggingToHandle(final Class<? extends Loggable> clazz, final Level level, final MethodHandle mh, final int paramStart, final boolean printReturnValue, final Supplier<String> text) {
    final DebugLogger log = getLogger(clazz);
    if (log.isEnabled()) {
        return MethodHandleFactory.addDebugPrintout(log, level, mh, paramStart, printReturnValue, text.get());
    }
    return mh;
}
 
Example #12
Source File: Context.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Given a Loggable class, weave debug info info a method handle for that logger.
 *
 * @param clazz            loggable
 * @param level            log level
 * @param mh               method handle
 * @param paramStart       first parameter to print
 * @param printReturnValue should we print the return vaulue?
 * @param text             debug printout to add
 *
 * @return instrumented method handle, or null if logger not enabled
 */
public MethodHandle addLoggingToHandle(final Class<? extends Loggable> clazz, final Level level, final MethodHandle mh, final int paramStart, final boolean printReturnValue, final Supplier<String> text) {
    final DebugLogger log = getLogger(clazz);
    if (log.isEnabled()) {
        return MethodHandleFactory.addDebugPrintout(log, level, mh, paramStart, printReturnValue, text.get());
    }
    return mh;
}
 
Example #13
Source File: Context.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Given a Loggable class, weave debug info info a method handle for that logger.
 *
 * @param clazz            loggable
 * @param level            log level
 * @param mh               method handle
 * @param paramStart       first parameter to print
 * @param printReturnValue should we print the return value?
 * @param text             debug printout to add
 *
 * @return instrumented method handle, or null if logger not enabled
 */
public MethodHandle addLoggingToHandle(final Class<? extends Loggable> clazz, final Level level, final MethodHandle mh, final int paramStart, final boolean printReturnValue, final Supplier<String> text) {
    final DebugLogger log = getLogger(clazz);
    if (log.isEnabled()) {
        return MethodHandleFactory.addDebugPrintout(log, level, mh, paramStart, printReturnValue, text.get());
    }
    return mh;
}
 
Example #14
Source File: Context.java    From jdk8u_nashorn with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Given a Loggable class, weave debug info info a method handle for that logger.
 *
 * @param clazz            loggable
 * @param level            log level
 * @param mh               method handle
 * @param paramStart       first parameter to print
 * @param printReturnValue should we print the return value?
 * @param text             debug printout to add
 *
 * @return instrumented method handle, or null if logger not enabled
 */
public MethodHandle addLoggingToHandle(final Class<? extends Loggable> clazz, final Level level, final MethodHandle mh, final int paramStart, final boolean printReturnValue, final Supplier<String> text) {
    final DebugLogger log = getLogger(clazz);
    if (log.isEnabled()) {
        return MethodHandleFactory.addDebugPrintout(log, level, mh, paramStart, printReturnValue, text.get());
    }
    return mh;
}
 
Example #15
Source File: Context.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Given a Loggable class, weave debug info info a method handle for that logger.
 * Level.INFO is used
 *
 * @param clazz loggable
 * @param mh    method handle
 * @param text  debug printout to add
 *
 * @return instrumented method handle, or null if logger not enabled
 */
public MethodHandle addLoggingToHandle(final Class<? extends Loggable> clazz, final MethodHandle mh, final Supplier<String> text) {
    return addLoggingToHandle(clazz, Level.INFO, mh, Integer.MAX_VALUE, false, text);
}
 
Example #16
Source File: Context.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Given a Loggable class, weave debug info info a method handle for that logger.
 * Level.INFO is used
 *
 * @param clazz loggable
 * @param mh    method handle
 * @param text  debug printout to add
 *
 * @return instrumented method handle, or null if logger not enabled
 */
public MethodHandle addLoggingToHandle(final Class<? extends Loggable> clazz, final MethodHandle mh, final Supplier<String> text) {
    return addLoggingToHandle(clazz, Level.INFO, mh, Integer.MAX_VALUE, false, text);
}
 
Example #17
Source File: Context.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get a logger, given a loggable class
 * @param clazz a Loggable class
 * @return debuglogger associated with that class
 */
public DebugLogger getLogger(final Class<? extends Loggable> clazz) {
    return getLogger(clazz, null);
}
 
Example #18
Source File: Context.java    From jdk8u_nashorn with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get a logger, given a loggable class
 * @param clazz a Loggable class
 * @return debuglogger associated with that class
 */
public DebugLogger getLogger(final Class<? extends Loggable> clazz) {
    return getLogger(clazz, null);
}
 
Example #19
Source File: Context.java    From jdk8u_nashorn with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Given a Loggable class, weave debug info info a method handle for that logger.
 * Level.INFO is used
 *
 * @param clazz loggable
 * @param mh    method handle
 * @param text  debug printout to add
 *
 * @return instrumented method handle, or null if logger not enabled
 */
public MethodHandle addLoggingToHandle(final Class<? extends Loggable> clazz, final MethodHandle mh, final Supplier<String> text) {
    return addLoggingToHandle(clazz, Level.INFO, mh, Integer.MAX_VALUE, false, text);
}
 
Example #20
Source File: Context.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Given a Loggable class, weave debug info info a method handle for that logger.
 * Level.INFO is used
 *
 * @param clazz loggable
 * @param mh    method handle
 * @param text  debug printout to add
 *
 * @return instrumented method handle, or null if logger not enabled
 */
public MethodHandle addLoggingToHandle(final Class<? extends Loggable> clazz, final MethodHandle mh, final Supplier<String> text) {
    return addLoggingToHandle(clazz, Level.INFO, mh, Integer.MAX_VALUE, false, text);
}
 
Example #21
Source File: Context.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get a logger, given a loggable class
 * @param clazz a Loggable class
 * @return debuglogger associated with that class
 */
public DebugLogger getLogger(final Class<? extends Loggable> clazz) {
    return getLogger(clazz, null);
}
 
Example #22
Source File: Context.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get a logger, given a loggable class
 * @param clazz a Loggable class
 * @return debuglogger associated with that class
 */
public DebugLogger getLogger(final Class<? extends Loggable> clazz) {
    return getLogger(clazz, null);
}
 
Example #23
Source File: Context.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Given a Loggable class, weave debug info info a method handle for that logger.
 * Level.INFO is used
 *
 * @param clazz loggable
 * @param mh    method handle
 * @param text  debug printout to add
 *
 * @return instrumented method handle, or null if logger not enabled
 */
public MethodHandle addLoggingToHandle(final Class<? extends Loggable> clazz, final MethodHandle mh, final Supplier<String> text) {
    return addLoggingToHandle(clazz, Level.INFO, mh, Integer.MAX_VALUE, false, text);
}
 
Example #24
Source File: Context.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get a logger, given a loggable class
 * @param clazz a Loggable class
 * @return debuglogger associated with that class
 */
public DebugLogger getLogger(final Class<? extends Loggable> clazz) {
    return getLogger(clazz, null);
}
 
Example #25
Source File: Context.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Given a Loggable class, weave debug info info a method handle for that logger.
 * Level.INFO is used
 *
 * @param clazz loggable
 * @param mh    method handle
 * @param text  debug printout to add
 *
 * @return instrumented method handle, or null if logger not enabled
 */
public MethodHandle addLoggingToHandle(final Class<? extends Loggable> clazz, final MethodHandle mh, final Supplier<String> text) {
    return addLoggingToHandle(clazz, Level.INFO, mh, Integer.MAX_VALUE, false, text);
}
 
Example #26
Source File: Context.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get a logger, given a loggable class
 * @param clazz a Loggable class
 * @return debuglogger associated with that class
 */
public DebugLogger getLogger(final Class<? extends Loggable> clazz) {
    return getLogger(clazz, null);
}
 
Example #27
Source File: Context.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Given a Loggable class, weave debug info info a method handle for that logger.
 * Level.INFO is used
 *
 * @param clazz loggable
 * @param mh    method handle
 * @param text  debug printout to add
 *
 * @return instrumented method handle, or null if logger not enabled
 */
public MethodHandle addLoggingToHandle(final Class<? extends Loggable> clazz, final MethodHandle mh, final Supplier<String> text) {
    return addLoggingToHandle(clazz, Level.INFO, mh, Integer.MAX_VALUE, false, text);
}
 
Example #28
Source File: Context.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get a logger, given a loggable class
 * @param clazz a Loggable class
 * @return debuglogger associated with that class
 */
public DebugLogger getLogger(final Class<? extends Loggable> clazz) {
    return getLogger(clazz, null);
}