List of usage examples for java.util.logging Level ALL
Level ALL
To view the source code for java.util.logging Level ALL.
Click Source Link
From source file:sensaris.SpXMLRpcClient.java
public static void main(String args[]) { SpXMLRpcClient c = new SpXMLRpcClient("", "", Level.ALL); //c.testSimpleClient(); c.testProxyClient();//from ww w .ja v a 2 s . c om }
From source file:net.consulion.jeotag.PhotoLoader.java
public static void load(final List<File> files) { final List<PhotoDataset> photos = new ArrayList<>(files.size()); files.stream().forEach((file) -> { final PhotoDataset photoDataset = new PhotoDataset(file); final TiffImageMetadata exif = getExif(file); if (exif != null) { final Instant timeTaken = getTimeTaken(exif, file); if (timeTaken != null) { photoDataset.setInstantTaken(timeTaken); photoDataset.setHasGeotag(photoHasGeotag(exif, file)); photos.add(photoDataset); } else { log(Level.ALL, String.format("Couldn't parse date/time for file %s", file)); }//from ww w . j av a 2 s.c o m } else { log(Level.WARNING, String.format("No EXIF metadata found for file %s", file)); } }); DataHolder.getInstance().addPhotos(photos); }
From source file:jenkins.model.RunIdMigratorTest.java
@BeforeClass public static void logging() { RunIdMigrator.LOGGER.setLevel(Level.ALL); Handler handler = new ConsoleHandler(); handler.setLevel(Level.ALL);/*from w w w . j ava2 s . c o m*/ RunIdMigrator.LOGGER.addHandler(handler); }
From source file:net.hgw4.hal.SerialProtocol.java
public SerialProtocol(int num) { serialProtocolLogger = Logger.getLogger(SerialProtocol.class.getName()); serialProtocolLogger.setLevel(Level.ALL); if (serialProtocolLogger.isLoggable(Level.INFO)) { serialProtocolLogger.info("SerialProtocol "); }//from ww w .j a v a 2s . c o m protocolNumber = num; }
From source file:org.mili.core.logging.java.JavaAdapterTest.java
@Before public void setUp() { log.setLevel(Level.ALL); }
From source file:org.archive.crawler.processor.recrawl.PersistProcessor.java
/** * Utility main for importing a log into a BDB-JE environment or moving a * database between environments (2 arguments), or simply dumping a log * to stderr in a more readable format (1 argument). * /*from w w w . ja v a2 s.c o m*/ * @param args command-line arguments * @throws DatabaseException * @throws IOException */ public static void main(String[] args) throws DatabaseException, IOException { Handler handler = new ConsoleHandler(); handler.setLevel(Level.ALL); handler.setFormatter(new OneLineSimpleLogger()); logger.addHandler(handler); logger.setUseParentHandlers(false); if (args.length == 2) { logger.setLevel(Level.INFO); populatePersistEnv(args[0], new File(args[1])); } else if (args.length == 1) { logger.setLevel(Level.FINE); populatePersistEnv(args[0], null); } else { System.out.println("Arguments: "); System.out.println(" source [target]"); System.out.println("...where source is either a txtser log file or BDB env dir"); System.out.println("and target, if present, is a BDB env dir. "); return; } }
From source file:com.dsh105.echopet.compat.api.plugin.ModuleLogger.java
public ModuleLogger(Logger parent, String... modulePath) { super(StringUtils.join(modulePath, "."), null); this.setParent(parent); this.setLevel(Level.ALL); this.modulePath = modulePath; StringBuilder builder = new StringBuilder(); for (String module : modulePath) { builder.append("[").append(module).append("] "); }//from ww w . ja v a 2 s . c om this.prefix = builder.toString(); }
From source file:mockit.integration.logging.LoggingIntegrationsTest.java
@Test public void jdkLoggingShouldLogNothing() { Logger log1 = Logger.getAnonymousLogger(); Logger log2 = Logger.getAnonymousLogger("bundle"); Logger log3 = Logger.getLogger(LoggingIntegrationsTest.class.getName()); Logger log4 = Logger.getLogger(LoggingIntegrationsTest.class.getName(), "bundle"); assertFalse(log1.isLoggable(Level.ALL)); log1.severe("testing that logger does nothing"); log2.setLevel(Level.WARNING); log2.info("testing that logger does nothing"); log3.warning("testing that logger does nothing"); log4.fine("testing that logger does nothing"); log4.finest("testing that logger does nothing"); }
From source file:org.netbeans.jpa.modeler.collaborate.issues.ExceptionUtils.java
public static void printStackTrace(String errorMessage, final Throwable t, final ModelerFile file) { t.printStackTrace();/*ww w. ja v a2s . c om*/ if (StringUtils.isBlank(errorMessage)) { errorMessage = t.getMessage(); if (StringUtils.isBlank(errorMessage)) { if (t.getCause() != null && StringUtils.isNotBlank(t.getCause().getMessage())) { errorMessage = t.getCause().getMessage(); } else if (t.getStackTrace().length > 0) { errorMessage = t.getStackTrace()[0].toString(); } } } final String message = errorMessage; LOG.log(Level.ALL, errorMessage, t); String content = file != null ? file.getContent() : ""; SwingUtilities.invokeLater(() -> { ExceptionReporterPanel exceptionReporterPanel = new ExceptionReporterPanel(message, t, content); exceptionReporterPanel.setVisible(true); }); t.printStackTrace(); }
From source file:io.github.jeddict.collaborate.issues.ExceptionUtils.java
public static void printStackTrace(String errorMessage, final Throwable t, final ModelerFile file) { t.printStackTrace();/*from w w w .ja va 2 s. co m*/ if (StringUtils.isBlank(errorMessage)) { errorMessage = t.getMessage(); if (StringUtils.isBlank(errorMessage)) { if (t.getCause() != null && StringUtils.isNotBlank(t.getCause().getMessage())) { errorMessage = t.getCause().getMessage(); } else if (t.getStackTrace().length > 0) { errorMessage = t.getStackTrace()[0].toString(); } } } final String message = errorMessage; LOG.log(Level.ALL, errorMessage, t); String content = file != null ? file.getContent() : ""; SwingUtilities.invokeLater(() -> { ExceptionReporterPanel exceptionReporterPanel = new ExceptionReporterPanel(message, t, content); exceptionReporterPanel.setVisible(true); }); }