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:org.valabs.odisp.standart5.ConfigurationManager5.java
public ConfigurationManager5() { log.setLevel(Level.ALL); }
From source file:turtlekit.viewer.PopulationCharter.java
@Override protected void activate() { setLogLevel(Level.ALL); super.activate(); observe(); }
From source file:at.ac.tuwien.ifs.lupu.LangDetFilterFactory.java
@Override public void inform(ResourceLoader loader) throws IOException { try {/*from ww w .ja v a 2 s . c o m*/ LOG.log(Level.ALL, "in inform"); List<String> files = splitFileNames(languageFiles); if (files.size() > 0) { languages = new HashSet<>(); for (String file : files) { List<String> lines = getLines(loader, file.trim()); System.out.println(lines); List<Language> typesLines = lines.stream().map(line -> readLanguage(line)).collect(toList()); languages.addAll(typesLines); LOG.log(Level.ALL, "languages:{0}", languages.size()); } } HashMap priorMap = new HashMap(); detector = DetectorFactory.create(); languages.stream().forEach((language) -> { priorMap.put(language.lang, language.prob); }); LOG.log(Level.ALL, "priorMap size:{0}", priorMap.size()); detector.setPriorMap(priorMap); } catch (LangDetectException ex) { Logger.getLogger(LangDetFilterFactory.class.getName()).log(Level.SEVERE, null, ex); } }
From source file:org.deviceconnect.android.deviceplugin.theta.ThetaDeviceApplication.java
@Override public void onCreate() { super.onCreate(); if (BuildConfig.DEBUG) { for (Logger logger : mLoggers) { AndroidHandler handler = new AndroidHandler(logger.getName()); handler.setFormatter(new SimpleFormatter()); handler.setLevel(Level.ALL); logger.addHandler(handler);/*w w w . j a va2s . c o m*/ logger.setLevel(Level.ALL); } } else { for (Logger logger : mLoggers) { logger.setLevel(Level.OFF); } } Context context = getApplicationContext(); mDeviceMgr = new ThetaDeviceManager(context); mHeadTracker = new HeadTrackerWrapper(new DefaultHeadTracker(context)); mSphericalViewApi = new SphericalViewApi(context); }
From source file:org.mili.core.logging.java.JavaAdapter.java
org.mili.core.logging.Level transformLevel(Level level) { Validate.notNull(level, "level cannot be null!"); if (level == Level.ALL || level == Level.FINEST) { return org.mili.core.logging.Level.TRACE; } else if (level == Level.FINE || level == Level.FINER) { return org.mili.core.logging.Level.DEBUG; } else if (level == Level.INFO || level == Level.CONFIG) { return org.mili.core.logging.Level.INFO; } else if (level == Level.WARNING) { return org.mili.core.logging.Level.WARN; } else if (level == Level.SEVERE) { return org.mili.core.logging.Level.ERROR; } else {/*from ww w . j a v a2 s .co m*/ return org.mili.core.logging.Level.FATAL; } }
From source file:net.community.chest.gitcloud.facade.ServletUtils.java
public static final Log wrapServletContext(final ServletContext context, final Level thresholdLevel) { if ((context == null) || (thresholdLevel == null)) { throw new IllegalArgumentException("Incomplete wrapper specification"); }//from w w w. ja va 2 s . co m return new AbstractJULWrapper() { @Override public void log(Level level, Object message, Throwable t) { if (isEnabled(level)) { if (t == null) { context.log(level.getName() + ": " + message); } else { context.log(level.getName() + ": " + message, t); } } } @Override public boolean isEnabled(Level level) { if (Level.OFF.equals(thresholdLevel)) { return false; } if (Level.ALL.equals(thresholdLevel)) { return true; } if (level.intValue() >= thresholdLevel.intValue()) { return true; } else { return false; // debug breakpoint } } }; }
From source file:com.adr.taskexecutor.ui.TaskExecutorRemote.java
/** Creates new form TaskExecutorRemote */ public TaskExecutorRemote() { initComponents();//from w w w .j a va 2 s .c o m jLoggingLevel.addItem(Level.SEVERE); jLoggingLevel.addItem(Level.WARNING); jLoggingLevel.addItem(Level.INFO); jLoggingLevel.addItem(Level.CONFIG); jLoggingLevel.addItem(Level.FINE); jLoggingLevel.addItem(Level.FINER); jLoggingLevel.addItem(Level.FINEST); jLoggingLevel.addItem(Level.OFF); jLoggingLevel.addItem(Level.ALL); jURL.setText(Configuration.getInstance().getPreference("remote.serverurl", "http://localhost/taskexecutoree/executetask")); jLoggingLevel.setSelectedItem(Level .parse(Configuration.getInstance().getPreference("remote.logginglevel", Level.INFO.toString()))); jTrace.setSelected(Boolean .parseBoolean(Configuration.getInstance().getPreference("remote.trace", Boolean.FALSE.toString()))); jStats.setSelected(Boolean .parseBoolean(Configuration.getInstance().getPreference("remote.stats", Boolean.TRUE.toString()))); }
From source file:org.jenkinsci.plugins.workflow.cps.SnippetizerTest.java
@BeforeClass public static void logging() { logger.setLevel(Level.ALL); Handler handler = new ConsoleHandler(); handler.setLevel(Level.ALL);// ww w . j a v a 2 s . c o m logger.addHandler(handler); }
From source file:com.subgraph.vega.impl.scanner.ScannerTask.java
ScannerTask(IScanInstance scanInstance, Scanner scanner, IScannerConfig config, IHttpRequestEngine requestEngine, IWorkspace workspace, IContentAnalyzer contentAnalyzer, List<IResponseProcessingModule> responseModules, List<IBasicModuleScript> basicModules) { this.scanInstance = scanInstance; this.scanner = scanner; this.scannerConfig = config; this.workspace = workspace; this.requestEngine = requestEngine; this.contentAnalyzer = contentAnalyzer; this.responseProcessingModules = responseModules; this.basicModules = basicModules; this.logger.setLevel(Level.ALL); }
From source file:org.efs.openreports.providers.BirtProvider.java
@SuppressWarnings("unchecked") public static synchronized void startBirtEngine(IPlatformContext context) { log.info("Starting BIRT Engine and OSGI Platform using: " + context.getClass().getName()); HTMLServerImageHandler imageHandler = new HTMLServerImageHandler(); HTMLRenderOption emitterConfig = new HTMLRenderOption(); emitterConfig.setActionHandler(new HTMLActionHandler()); emitterConfig.setImageHandler(imageHandler); EngineConfig config = new EngineConfig(); config.setEngineHome(""); config.setPlatformContext(context);// ww w. j av a2 s . co m config.setLogConfig(null, Level.ALL); config.getEmitterConfigs().put("html", emitterConfig); try { Platform.startup(config); } catch (BirtException e) { log.error("BirtException", e); } IReportEngineFactory factory = (IReportEngineFactory) Platform .createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY); birtEngine = factory.createReportEngine(config); log.info("BIRT Engine Started"); birtEngine.changeLogLevel(Level.SEVERE); }