java.rmi.server.LogStream Java Examples
The following examples show how to use
java.rmi.server.LogStream.
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: Log.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Access log for a tri-state system property. * * Need to first convert override value to a log level, taking * care to interpret a range of values between BRIEF, VERBOSE and * SILENT. * * An override < 0 is interpreted to mean that the logging * configuration should not be overridden. The level passed to the * factories createLog method will be null in this case. * * Note that if oldLogName is null and old logging is on, the * returned LogStreamLog will ignore the override parameter - the * log will never log messages. This permits new logs that only * write to Loggers to do nothing when old logging is active. * * Do not call getLog multiple times on the same logger name. * Since this is an internal API, no checks are made to ensure * that multiple logs do not exist for the same logger. */ public static Log getLog(String loggerName, String oldLogName, int override) { Level level; if (override < 0) { level = null; } else if (override == LogStream.SILENT) { level = Level.OFF; } else if ((override > LogStream.SILENT) && (override <= LogStream.BRIEF)) { level = BRIEF; } else if ((override > LogStream.BRIEF) && (override <= LogStream.VERBOSE)) { level = VERBOSE; } else { level = Level.FINEST; } return logFactory.createLog(loggerName, oldLogName, level); }
Example #2
Source File: Log.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Access log for a tri-state system property. * * Need to first convert override value to a log level, taking * care to interpret a range of values between BRIEF, VERBOSE and * SILENT. * * An override < 0 is interpreted to mean that the logging * configuration should not be overridden. The level passed to the * factories createLog method will be null in this case. * * Note that if oldLogName is null and old logging is on, the * returned LogStreamLog will ignore the override parameter - the * log will never log messages. This permits new logs that only * write to Loggers to do nothing when old logging is active. * * Do not call getLog multiple times on the same logger name. * Since this is an internal API, no checks are made to ensure * that multiple logs do not exist for the same logger. */ public static Log getLog(String loggerName, String oldLogName, int override) { Level level; if (override < 0) { level = null; } else if (override == LogStream.SILENT) { level = Level.OFF; } else if ((override > LogStream.SILENT) && (override <= LogStream.BRIEF)) { level = BRIEF; } else if ((override > LogStream.BRIEF) && (override <= LogStream.VERBOSE)) { level = VERBOSE; } else { level = Level.FINEST; } return logFactory.createLog(loggerName, oldLogName, level); }
Example #3
Source File: Log.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Access log for a tri-state system property. * * Need to first convert override value to a log level, taking * care to interpret a range of values between BRIEF, VERBOSE and * SILENT. * * An override < 0 is interpreted to mean that the logging * configuration should not be overridden. The level passed to the * factories createLog method will be null in this case. * * Note that if oldLogName is null and old logging is on, the * returned LogStreamLog will ignore the override parameter - the * log will never log messages. This permits new logs that only * write to Loggers to do nothing when old logging is active. * * Do not call getLog multiple times on the same logger name. * Since this is an internal API, no checks are made to ensure * that multiple logs do not exist for the same logger. */ public static Log getLog(String loggerName, String oldLogName, int override) { Level level; if (override < 0) { level = null; } else if (override == LogStream.SILENT) { level = Level.OFF; } else if ((override > LogStream.SILENT) && (override <= LogStream.BRIEF)) { level = BRIEF; } else if ((override > LogStream.BRIEF) && (override <= LogStream.VERBOSE)) { level = VERBOSE; } else { level = Level.FINEST; } return logFactory.createLog(loggerName, oldLogName, level); }
Example #4
Source File: Log.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
/** * Access log for a tri-state system property. * * Need to first convert override value to a log level, taking * care to interpret a range of values between BRIEF, VERBOSE and * SILENT. * * An override < 0 is interpreted to mean that the logging * configuration should not be overridden. The level passed to the * factories createLog method will be null in this case. * * Note that if oldLogName is null and old logging is on, the * returned LogStreamLog will ignore the override parameter - the * log will never log messages. This permits new logs that only * write to Loggers to do nothing when old logging is active. * * Do not call getLog multiple times on the same logger name. * Since this is an internal API, no checks are made to ensure * that multiple logs do not exist for the same logger. */ public static Log getLog(String loggerName, String oldLogName, int override) { Level level; if (override < 0) { level = null; } else if (override == LogStream.SILENT) { level = Level.OFF; } else if ((override > LogStream.SILENT) && (override <= LogStream.BRIEF)) { level = BRIEF; } else if ((override > LogStream.BRIEF) && (override <= LogStream.VERBOSE)) { level = VERBOSE; } else { level = Level.FINEST; } return logFactory.createLog(loggerName, oldLogName, level); }
Example #5
Source File: Log.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Access log for a tri-state system property. * * Need to first convert override value to a log level, taking * care to interpret a range of values between BRIEF, VERBOSE and * SILENT. * * An override < 0 is interpreted to mean that the logging * configuration should not be overridden. The level passed to the * factories createLog method will be null in this case. * * Note that if oldLogName is null and old logging is on, the * returned LogStreamLog will ignore the override parameter - the * log will never log messages. This permits new logs that only * write to Loggers to do nothing when old logging is active. * * Do not call getLog multiple times on the same logger name. * Since this is an internal API, no checks are made to ensure * that multiple logs do not exist for the same logger. */ public static Log getLog(String loggerName, String oldLogName, int override) { Level level; if (override < 0) { level = null; } else if (override == LogStream.SILENT) { level = Level.OFF; } else if ((override > LogStream.SILENT) && (override <= LogStream.BRIEF)) { level = BRIEF; } else if ((override > LogStream.BRIEF) && (override <= LogStream.VERBOSE)) { level = VERBOSE; } else { level = Level.FINEST; } return logFactory.createLog(loggerName, oldLogName, level); }
Example #6
Source File: Log.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Access log for a tri-state system property. * * Need to first convert override value to a log level, taking * care to interpret a range of values between BRIEF, VERBOSE and * SILENT. * * An override < 0 is interpreted to mean that the logging * configuration should not be overridden. The level passed to the * factories createLog method will be null in this case. * * Note that if oldLogName is null and old logging is on, the * returned LogStreamLog will ignore the override parameter - the * log will never log messages. This permits new logs that only * write to Loggers to do nothing when old logging is active. * * Do not call getLog multiple times on the same logger name. * Since this is an internal API, no checks are made to ensure * that multiple logs do not exist for the same logger. */ public static Log getLog(String loggerName, String oldLogName, int override) { Level level; if (override < 0) { level = null; } else if (override == LogStream.SILENT) { level = Level.OFF; } else if ((override > LogStream.SILENT) && (override <= LogStream.BRIEF)) { level = BRIEF; } else if ((override > LogStream.BRIEF) && (override <= LogStream.VERBOSE)) { level = VERBOSE; } else { level = Level.FINEST; } return logFactory.createLog(loggerName, oldLogName, level); }
Example #7
Source File: Log.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Access log for a tri-state system property. * * Need to first convert override value to a log level, taking * care to interpret a range of values between BRIEF, VERBOSE and * SILENT. * * An override {@literal <} 0 is interpreted to mean that the logging * configuration should not be overridden. The level passed to the * factories createLog method will be null in this case. * * Note that if oldLogName is null and old logging is on, the * returned LogStreamLog will ignore the override parameter - the * log will never log messages. This permits new logs that only * write to Loggers to do nothing when old logging is active. * * Do not call getLog multiple times on the same logger name. * Since this is an internal API, no checks are made to ensure * that multiple logs do not exist for the same logger. */ public static Log getLog(String loggerName, String oldLogName, int override) { Level level; if (override < 0) { level = null; } else if (override == LogStream.SILENT) { level = Level.OFF; } else if ((override > LogStream.SILENT) && (override <= LogStream.BRIEF)) { level = BRIEF; } else if ((override > LogStream.BRIEF) && (override <= LogStream.VERBOSE)) { level = VERBOSE; } else { level = Level.FINEST; } return logFactory.createLog(loggerName, oldLogName, level); }
Example #8
Source File: Log.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
/** * Access log for a tri-state system property. * * Need to first convert override value to a log level, taking * care to interpret a range of values between BRIEF, VERBOSE and * SILENT. * * An override < 0 is interpreted to mean that the logging * configuration should not be overridden. The level passed to the * factories createLog method will be null in this case. * * Note that if oldLogName is null and old logging is on, the * returned LogStreamLog will ignore the override parameter - the * log will never log messages. This permits new logs that only * write to Loggers to do nothing when old logging is active. * * Do not call getLog multiple times on the same logger name. * Since this is an internal API, no checks are made to ensure * that multiple logs do not exist for the same logger. */ public static Log getLog(String loggerName, String oldLogName, int override) { Level level; if (override < 0) { level = null; } else if (override == LogStream.SILENT) { level = Level.OFF; } else if ((override > LogStream.SILENT) && (override <= LogStream.BRIEF)) { level = BRIEF; } else if ((override > LogStream.BRIEF) && (override <= LogStream.VERBOSE)) { level = VERBOSE; } else { level = Level.FINEST; } return logFactory.createLog(loggerName, oldLogName, level); }
Example #9
Source File: Log.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Access log for a tri-state system property. * * Need to first convert override value to a log level, taking * care to interpret a range of values between BRIEF, VERBOSE and * SILENT. * * An override < 0 is interpreted to mean that the logging * configuration should not be overridden. The level passed to the * factories createLog method will be null in this case. * * Note that if oldLogName is null and old logging is on, the * returned LogStreamLog will ignore the override parameter - the * log will never log messages. This permits new logs that only * write to Loggers to do nothing when old logging is active. * * Do not call getLog multiple times on the same logger name. * Since this is an internal API, no checks are made to ensure * that multiple logs do not exist for the same logger. */ public static Log getLog(String loggerName, String oldLogName, int override) { Level level; if (override < 0) { level = null; } else if (override == LogStream.SILENT) { level = Level.OFF; } else if ((override > LogStream.SILENT) && (override <= LogStream.BRIEF)) { level = BRIEF; } else if ((override > LogStream.BRIEF) && (override <= LogStream.VERBOSE)) { level = VERBOSE; } else { level = Level.FINEST; } return logFactory.createLog(loggerName, oldLogName, level); }
Example #10
Source File: Log.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Access log for a tri-state system property. * * Need to first convert override value to a log level, taking * care to interpret a range of values between BRIEF, VERBOSE and * SILENT. * * An override < 0 is interpreted to mean that the logging * configuration should not be overridden. The level passed to the * factories createLog method will be null in this case. * * Note that if oldLogName is null and old logging is on, the * returned LogStreamLog will ignore the override parameter - the * log will never log messages. This permits new logs that only * write to Loggers to do nothing when old logging is active. * * Do not call getLog multiple times on the same logger name. * Since this is an internal API, no checks are made to ensure * that multiple logs do not exist for the same logger. */ public static Log getLog(String loggerName, String oldLogName, int override) { Level level; if (override < 0) { level = null; } else if (override == LogStream.SILENT) { level = Level.OFF; } else if ((override > LogStream.SILENT) && (override <= LogStream.BRIEF)) { level = BRIEF; } else if ((override > LogStream.BRIEF) && (override <= LogStream.VERBOSE)) { level = VERBOSE; } else { level = Level.FINEST; } return logFactory.createLog(loggerName, oldLogName, level); }
Example #11
Source File: Log.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Access log for a tri-state system property. * * Need to first convert override value to a log level, taking * care to interpret a range of values between BRIEF, VERBOSE and * SILENT. * * An override < 0 is interpreted to mean that the logging * configuration should not be overridden. The level passed to the * factories createLog method will be null in this case. * * Note that if oldLogName is null and old logging is on, the * returned LogStreamLog will ignore the override parameter - the * log will never log messages. This permits new logs that only * write to Loggers to do nothing when old logging is active. * * Do not call getLog multiple times on the same logger name. * Since this is an internal API, no checks are made to ensure * that multiple logs do not exist for the same logger. */ public static Log getLog(String loggerName, String oldLogName, int override) { Level level; if (override < 0) { level = null; } else if (override == LogStream.SILENT) { level = Level.OFF; } else if ((override > LogStream.SILENT) && (override <= LogStream.BRIEF)) { level = BRIEF; } else if ((override > LogStream.BRIEF) && (override <= LogStream.VERBOSE)) { level = VERBOSE; } else { level = Level.FINEST; } return logFactory.createLog(loggerName, oldLogName, level); }
Example #12
Source File: Log.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
/** * Access log for a tri-state system property. * * Need to first convert override value to a log level, taking * care to interpret a range of values between BRIEF, VERBOSE and * SILENT. * * An override < 0 is interpreted to mean that the logging * configuration should not be overridden. The level passed to the * factories createLog method will be null in this case. * * Note that if oldLogName is null and old logging is on, the * returned LogStreamLog will ignore the override parameter - the * log will never log messages. This permits new logs that only * write to Loggers to do nothing when old logging is active. * * Do not call getLog multiple times on the same logger name. * Since this is an internal API, no checks are made to ensure * that multiple logs do not exist for the same logger. */ public static Log getLog(String loggerName, String oldLogName, int override) { Level level; if (override < 0) { level = null; } else if (override == LogStream.SILENT) { level = Level.OFF; } else if ((override > LogStream.SILENT) && (override <= LogStream.BRIEF)) { level = BRIEF; } else if ((override > LogStream.BRIEF) && (override <= LogStream.VERBOSE)) { level = VERBOSE; } else { level = Level.FINEST; } return logFactory.createLog(loggerName, oldLogName, level); }
Example #13
Source File: Log.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Access log for a tri-state system property. * * Need to first convert override value to a log level, taking * care to interpret a range of values between BRIEF, VERBOSE and * SILENT. * * An override < 0 is interpreted to mean that the logging * configuration should not be overridden. The level passed to the * factories createLog method will be null in this case. * * Note that if oldLogName is null and old logging is on, the * returned LogStreamLog will ignore the override parameter - the * log will never log messages. This permits new logs that only * write to Loggers to do nothing when old logging is active. * * Do not call getLog multiple times on the same logger name. * Since this is an internal API, no checks are made to ensure * that multiple logs do not exist for the same logger. */ public static Log getLog(String loggerName, String oldLogName, int override) { Level level; if (override < 0) { level = null; } else if (override == LogStream.SILENT) { level = Level.OFF; } else if ((override > LogStream.SILENT) && (override <= LogStream.BRIEF)) { level = BRIEF; } else if ((override > LogStream.BRIEF) && (override <= LogStream.VERBOSE)) { level = VERBOSE; } else { level = Level.FINEST; } return logFactory.createLog(loggerName, oldLogName, level); }
Example #14
Source File: Log.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
private LogStreamLog(LogStream stream, Level level) { if ((stream != null) && (level != null)) { /* if the stream or level is null, don't log any * messages */ levelValue = level.intValue(); } this.stream = stream; }
Example #15
Source File: Log.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
public Log createLog(String loggerName, String oldLogName, Level level) { LogStream stream = null; if (oldLogName != null) { stream = LogStream.log(oldLogName); } return new LogStreamLog(stream, level); }
Example #16
Source File: Log.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public Log createLog(String loggerName, String oldLogName, Level level) { LogStream stream = null; if (oldLogName != null) { stream = LogStream.log(oldLogName); } return new LogStreamLog(stream, level); }
Example #17
Source File: Log.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public Log createLog(String loggerName, String oldLogName, Level level) { LogStream stream = null; if (oldLogName != null) { stream = LogStream.log(oldLogName); } return new LogStreamLog(stream, level); }
Example #18
Source File: Log.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private LogStreamLog(LogStream stream, Level level) { if ((stream != null) && (level != null)) { /* if the stream or level is null, don't log any * messages */ levelValue = level.intValue(); } this.stream = stream; }
Example #19
Source File: Log.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public Log createLog(String loggerName, String oldLogName, Level level) { LogStream stream = null; if (oldLogName != null) { stream = LogStream.log(oldLogName); } return new LogStreamLog(stream, level); }
Example #20
Source File: Log.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private LogStreamLog(LogStream stream, Level level) { if ((stream != null) && (level != null)) { /* if the stream or level is null, don't log any * messages */ levelValue = level.intValue(); } this.stream = stream; }
Example #21
Source File: Log.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private LogStreamLog(LogStream stream, Level level) { if ((stream != null) && (level != null)) { /* if the stream or level is null, don't log any * messages */ levelValue = level.intValue(); } this.stream = stream; }
Example #22
Source File: Log.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
public Log createLog(String loggerName, String oldLogName, Level level) { LogStream stream = null; if (oldLogName != null) { stream = LogStream.log(oldLogName); } return new LogStreamLog(stream, level); }
Example #23
Source File: Log.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public Log createLog(String loggerName, String oldLogName, Level level) { LogStream stream = null; if (oldLogName != null) { stream = LogStream.log(oldLogName); } return new LogStreamLog(stream, level); }
Example #24
Source File: Log.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
private LogStreamLog(LogStream stream, Level level) { if ((stream != null) && (level != null)) { /* if the stream or level is null, don't log any * messages */ levelValue = level.intValue(); } this.stream = stream; }
Example #25
Source File: Log.java From hottub with GNU General Public License v2.0 | 5 votes |
private LogStreamLog(LogStream stream, Level level) { if ((stream != null) && (level != null)) { /* if the stream or level is null, don't log any * messages */ levelValue = level.intValue(); } this.stream = stream; }
Example #26
Source File: Log.java From hottub with GNU General Public License v2.0 | 5 votes |
public Log createLog(String loggerName, String oldLogName, Level level) { LogStream stream = null; if (oldLogName != null) { stream = LogStream.log(oldLogName); } return new LogStreamLog(stream, level); }
Example #27
Source File: Log.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private LogStreamLog(LogStream stream, Level level) { if ((stream != null) && (level != null)) { /* if the stream or level is null, don't log any * messages */ levelValue = level.intValue(); } this.stream = stream; }
Example #28
Source File: Log.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private LogStreamLog(LogStream stream, Level level) { if ((stream != null) && (level != null)) { /* if the stream or level is null, don't log any * messages */ levelValue = level.intValue(); } this.stream = stream; }
Example #29
Source File: Log.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public Log createLog(String loggerName, String oldLogName, Level level) { LogStream stream = null; if (oldLogName != null) { stream = LogStream.log(oldLogName); } return new LogStreamLog(stream, level); }
Example #30
Source File: Log.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private LogStreamLog(LogStream stream, Level level) { if ((stream != null) && (level != null)) { /* if the stream or level is null, don't log any * messages */ levelValue = level.intValue(); } this.stream = stream; }