Home
last modified time | relevance | path

Searched refs:Level (Results 1 – 25 of 37) sorted by relevance

12

/libcore/ojluni/src/main/java/sun/util/logging/
DPlatformLogger.java107 public static enum Level { enum in PlatformLogger
139 static Level valueOf(int level) { in valueOf()
143 case PlatformLogger.FINEST : return Level.FINEST; in valueOf()
144 case PlatformLogger.FINE : return Level.FINE; in valueOf()
145 case PlatformLogger.FINER : return Level.FINER; in valueOf()
146 case PlatformLogger.INFO : return Level.INFO; in valueOf()
147 case PlatformLogger.WARNING : return Level.WARNING; in valueOf()
148 case PlatformLogger.CONFIG : return Level.CONFIG; in valueOf()
149 case PlatformLogger.SEVERE : return Level.SEVERE; in valueOf()
150 case PlatformLogger.OFF : return Level.OFF; in valueOf()
[all …]
/libcore/ojluni/src/main/java/java/util/logging/
DLevel.java69 public class Level implements java.io.Serializable { class
96 public static final Level OFF = new Level("OFF",Integer.MAX_VALUE, defaultBundle);
107 public static final Level SEVERE = new Level("SEVERE",1000, defaultBundle);
117 public static final Level WARNING = new Level("WARNING", 900, defaultBundle);
128 public static final Level INFO = new Level("INFO", 800, defaultBundle);
140 public static final Level CONFIG = new Level("CONFIG", 700, defaultBundle);
161 public static final Level FINE = new Level("FINE", 500, defaultBundle);
169 public static final Level FINER = new Level("FINER", 400, defaultBundle);
175 public static final Level FINEST = new Level("FINEST", 300, defaultBundle);
181 public static final Level ALL = new Level("ALL", Integer.MIN_VALUE, defaultBundle);
[all …]
DLogger.java177 private static final int offValue = Level.OFF.intValue();
198 private volatile Level levelObject;
268 levelValue = Level.INFO.intValue(); in Logger()
292 levelValue = Level.INFO.intValue(); in Logger()
654 public void log(Level level, String msg) { in log()
673 public void log(Level level, String msg, Object param1) { in log()
694 public void log(Level level, String msg, Object params[]) { in log()
719 public void log(Level level, String msg, Throwable thrown) { in log()
745 public void logp(Level level, String sourceClass, String sourceMethod, String msg) { in logp()
769 public void logp(Level level, String sourceClass, String sourceMethod, in logp()
[all …]
DLoggingProxyImpl.java51 ((Logger) logger).setLevel((Level) newLevel); in setLevel()
56 return ((Logger) logger).isLoggable((Level) level); in isLoggable()
61 ((Logger) logger).log((Level) level, msg); in log()
66 ((Logger) logger).log((Level) level, msg, t); in log()
71 ((Logger) logger).log((Level) level, msg, params); in log()
96 Level level = Level.findLevel(levelName); in parseLevel()
105 return ((Level) level).getLevelName(); in getLevelName()
110 return ((Level) level).intValue(); in getLevelValue()
DMemoryHandler.java78 private Level pushLevel;
91 pushLevel = manager.getLevelProperty(cname +".push", Level.SEVERE); in configure()
96 setLevel(manager.getLevelProperty(cname +".level", Level.ALL)); in configure()
150 public MemoryHandler(Handler target, int size, Level pushLevel) { in MemoryHandler()
233 setLevel(Level.OFF); in close()
245 public void setPushLevel(Level newLevel) throws SecurityException { in setPushLevel()
259 public synchronized Level getPushLevel() { in getPushLevel()
DHandler.java49 private static final int offValue = Level.OFF.intValue();
53 private Level logLevel = Level.ALL;
252 public synchronized void setLevel(Level newLevel) throws SecurityException { in setLevel()
266 public synchronized Level getLevel() { in getLevel()
DLogging.java74 Level level = l.getLevel(); in getLoggerLevel()
93 Level level = null; in setLoggerLevel()
96 level = Level.findLevel(levelName); in setLoggerLevel()
DLogRecord.java92 private Level level;
176 public LogRecord(Level level, String msg) { in LogRecord()
251 public Level getLevel() { in getLevel()
259 public void setLevel(Level level) { in setLevel()
DLogManager.java155 private final static Level defaultLevel = Level.INFO;
616 Level level = manager.getLevelProperty(name + ".level", null); in addLocalLogger()
779 Level l = Level.findLevel(levs); in loadLoggerHandlers()
950 private static void doSetLevel(final Logger logger, final Level level) { in doSetLevel()
1277 Level getLevelProperty(String name, Level defaultValue) { in getLevelProperty()
1282 Level l = Level.findLevel(val.trim()); in getLevelProperty()
1442 Level level = getLevelProperty(key, null); in setLevelsOnExistingLoggers()
DConsoleHandler.java66 setLevel(manager.getLevelProperty(cname +".level", Level.INFO)); in configure()
DFileHandler.java198 setLevel(manager.getLevelProperty(cname + ".level", Level.ALL)); in configure()
543 Level oldLevel = getLevel(); in rotate()
544 setLevel(Level.OFF); in rotate()
DSocketHandler.java82 setLevel(manager.getLevelProperty(cname +".level", Level.ALL)); in configure()
DStreamHandler.java74 setLevel(manager.getLevelProperty(cname +".level", Level.INFO)); in configure()
/libcore/luni/src/test/java/libcore/java/util/logging/
DOldLogRecordTest.java20 import java.util.logging.Level;
28 private LogRecord lr = new LogRecord(Level.CONFIG, MSG);
37 LogRecord lr2 = new LogRecord(Level.CONFIG, "MSG2"); in testGetSetTimeCheck()
43 assertSame(lr.getLevel(), Level.CONFIG); in testGetSetLevelNormal()
44 lr.setLevel(Level.ALL); in testGetSetLevelNormal()
45 assertSame(lr.getLevel(), Level.ALL); in testGetSetLevelNormal()
46 lr.setLevel(Level.FINEST); in testGetSetLevelNormal()
47 assertSame(lr.getLevel(), Level.FINEST); in testGetSetLevelNormal()
83 lr = new LogRecord(Level.CONFIG, "msg thread"); in update()
DOldLevelTest.java21 import java.util.logging.Level;
28 Level l = new MockLevel("level1", 120); in testGetResourceBundleName()
44 Level l = new MockLevel("level1", value1); in testIntValue()
49 public static class MockLevel extends Level implements Serializable {
DOldMemoryHandlerTest.java27 import java.util.logging.Level;
70 assertTrue(handler.isLoggable(new LogRecord(Level.INFO, "1"))); in testIsLoggable()
71 assertTrue(handler.isLoggable(new LogRecord(Level.WARNING, "2"))); in testIsLoggable()
72 assertTrue(handler.isLoggable(new LogRecord(Level.SEVERE, "3"))); in testIsLoggable()
80 assertEquals("Level should be FINE", Level.FINE, handler.getLevel()); in testMemoryHandler()
81 assertEquals("Level should be WARNING", Level.WARNING, handler.getPushLevel()); in testMemoryHandler()
DOldFileHandlerTest.java33 import java.util.logging.Level;
77 r = new LogRecord(Level.CONFIG, "msg"); in setUp()
99 assertEquals("is non equal to actual value", Level.FINE, handler in testFileHandler()
123 assertEquals("is non equal to actual value", Level.FINE, handler in testFileHandler_1params()
205 assertEquals("is non equal to actual value", Level.FINE, handler in testFileHandler_2params()
243 assertEquals("is non equal to actual value", Level.FINE, handler in testFileHandler_3params()
291 assertEquals("is non equal to actual value", Level.FINE, handler in testFileHandler_4params()
450 LogRecord[] r = new LogRecord[] { new LogRecord(Level.CONFIG, "msg__"), in testPublish()
451 new LogRecord(Level.WARNING, "message"), in testPublish()
452 new LogRecord(Level.INFO, "message for"), in testPublish()
[all …]
DOldFormatterTest.java22 import java.util.logging.Level;
31 LogRecord r = new LogRecord(Level.FINE, MSG);
DOldXMLFormatterTest.java22 import java.util.logging.Level;
37 lr = new LogRecord(Level.SEVERE, "pattern"); in setUp()
DOldLoggerTest.java25 import java.util.logging.Level;
140 pLog.setLevel(Level.CONFIG); in testGetLogger_WithParent()
/libcore/dalvik/src/main/java/dalvik/system/
DDalvikLogHandler.java19 import java.util.logging.Level;
44 void publish(Logger source, String tag, Level level, String message); in publish()
/libcore/dom/src/test/java/
DREADME2 Level 1 Core tests and Level 2 Core tests from
/libcore/dom/src/test/resources/META-INF/
DMANIFEST.MF10 Implementation-Title: W3C/NIST Test Suite for DOM Level 2 Core
11 Specification-Title: W3C/NIST Test Suite for DOM Level 2 Core
/libcore/support/src/test/java/tests/http/
DMockWebServer.java48 import java.util.logging.Level;
187 logger.log(Level.WARNING, "MockWebServer connection failed", e); in play()
197 logger.log(Level.WARNING, "MockWebServer server socket close failed", e); in play()
204 logger.log(Level.WARNING, "MockWebServer socket close failed", e); in play()
210 logger.log(Level.WARNING, "MockWebServer executor shutdown failed", e); in play()
250 logger.log(Level.WARNING, "MockWebServer connection failed", e); in serveConnection()
/libcore/luni/src/test/java/libcore/net/
DNetworkSecurityPolicyTest.java36 import java.util.logging.Level;
211 logger.setLevel(Level.ALL); in testCleartextTrafficPolicyWithLoggingSocketHandler()
212 LogRecord record = new LogRecord(Level.INFO, "A log record"); in testCleartextTrafficPolicyWithLoggingSocketHandler()

12