Examples of Logging


Examples of io.airlift.log.Logging

        // unhook out and err while initializing logging or logger will print to them
        PrintStream out = System.out;
        PrintStream err = System.err;
        try {
            if (debug) {
                Logging logging = Logging.initialize();
                logging.configure(new LoggingConfiguration());
                logging.setLevel("com.facebook.presto", Level.DEBUG);
            }
            else {
                System.setOut(new PrintStream(nullOutputStream()));
                System.setErr(new PrintStream(nullOutputStream()));

                Logging logging = Logging.initialize();
                logging.configure(new LoggingConfiguration());
                logging.disableConsole();
            }
        }
        catch (IOException e) {
            throw Throwables.propagate(e);
        }
View Full Code Here

Examples of io.airlift.log.Logging

        // unhook out and err while initializing logging or logger will print to them
        PrintStream out = System.out;
        PrintStream err = System.err;
        try {
            if (debug) {
                Logging logging = Logging.initialize();
                logging.configure(new LoggingConfiguration());
                logging.setLevel("com.facebook.presto", Level.DEBUG);
            }
            else {
                System.setOut(nullPrintStream());
                System.setErr(nullPrintStream());

                Logging logging = Logging.initialize();
                logging.configure(new LoggingConfiguration());
                logging.disableConsole();
            }
        }
        catch (IOException e) {
            throw Throwables.propagate(e);
        }
View Full Code Here

Examples of org.geotools.util.logging.Logging

     * @see Logging#forceMonolineConsoleOutput
     * @see Hints#putSystemDefault
     * @see #getDefaultHints
     */
    public static void init(){
        final Logging log = Logging.GEOTOOLS;
        try {
            log.setLoggerFactory("org.geotools.util.logging.CommonsLoggerFactory");
        } catch (ClassNotFoundException commonsException) {
            try {
                log.setLoggerFactory("org.geotools.util.logging.Log4JLoggerFactory");
            } catch (ClassNotFoundException log4jException) {
                // Nothing to do, we already tried our best.
            }
        }
        // If java logging is used, force monoline console output.
        if (log.getLoggerFactory() == null) {
            log.forceMonolineConsoleOutput();
        }
    }
View Full Code Here

Examples of org.jab.docsearch.utils.Logging

     * @param args
     */
    public static void main(String[] args) {

        // init logging
        Logging logging = new Logging();
        logging.init();

        // parse params
        boolean hasCommands = false;
        String commandString = null;
        String indexString = null;
        boolean enableLogfile = false;

        for (int i = 0; i < args.length; i++) {
            String arg = args[i];

            if (arg.startsWith("enable_logfile")) {
                enableLogfile = true;
            }
            else {
                if (commandString == null) {
                    hasCommands = true;
                    commandString = arg;
                }
                else {
                    indexString = arg;
                }
            }
        }

        // add logfile logger if enable_logfile option as startargument
        if (enableLogfile) {
            logging.addFileLogger();
        }

        // Environment
        Environment env = Environment.getInstance();
        // FileEnvironment
View Full Code Here

Examples of org.jboss.jca.as.converters.wls.api.metadata.Logging

   private ConnectionDefinitionProperties parseConnectionDefinitionProperties(XMLStreamReader reader)
      throws XMLStreamException, ParserException
   {
      PoolParams poolParams = null;
      Logging logging = null;
      TransactionSupport trans = null;
      String authMech = null;
      Boolean reAuthSupport = null;
      ConfigProperties props = null;
      String resAuth = null;
View Full Code Here

Examples of org.jboss.jca.as.converters.wls.api.metadata.Logging

   private ConnectionDefinitionProperties parseConnectionDefinitionProperties(XMLStreamReader reader)
      throws XMLStreamException, ParserException
   {
      PoolParams poolParams = null;
      Logging logging = null;
      TransactionSupport trans = null;
      String authMech = null;
      Boolean reAuthSupport = null;
      ConfigProperties props = null;
      String resAuth = null;
View Full Code Here

Examples of org.jboss.jca.as.converters.wls.api.metadata.Logging

   private ConnectionDefinitionProperties parseConnectionDefinitionProperties(XMLStreamReader reader)
      throws XMLStreamException, ParserException
   {
      PoolParams poolParams = null;
      Logging logging = null;
      TransactionSupport trans = null;
      String authMech = null;
      Boolean reAuthSupport = null;
      ConfigProperties props = null;
      String resAuth = null;
View Full Code Here

Examples of org.jclouds.googlecloudstorage.domain.internal.Logging

               .role(ObjectRole.OWNER).build();
      BucketCors bucketCors = BucketCors.builder().addOrigin("http://example.appspot.com").addMethod("GET")
               .addMethod("HEAD").addResponseHeader("x-meta-goog-custom").maxAgeSeconds(10).build();
      Versioning version = Versioning.builder().enalbled(true).build();

      Logging log = Logging.builder().logBucket(LOG_BUCKET_NAME).logObjectPrefix(BUCKET_NAME).build();

      BucketTemplate template = new BucketTemplate().name(BUCKET_NAME).addAcl(acl).addDefaultObjectAccessControls(oac)
               .versioning(version).location(Location.US_CENTRAL2).logging(log)
               .storageClass(StorageClass.DURABLE_REDUCED_AVAILABILITY).addCORS(bucketCors);
View Full Code Here

Examples of org.jclouds.googlecloudstorage.domain.internal.Logging

   }

   @Test(groups = "live", dependsOnMethods = "testCreateBucket")
   public void testPatchBucket() {
      Logging logging = Logging.builder().logBucket(LOG_BUCKET_NAME).logObjectPrefix(BUCKET_NAME).build();
      BucketTemplate template = new BucketTemplate().name(BUCKET_NAME).logging(logging);

      Bucket response = api().patchBucket(BUCKET_NAME, template);

      assertNotNull(response);
View Full Code Here

Examples of org.neo4j.kernel.logging.Logging

    public void start() {
        if (neoServer!=null) throw new IllegalStateException("Server already running");
        URL url = getClass().getResource("/" + propertiesFile);
        if (url==null) throw new IllegalArgumentException("Could not resolve properties file "+propertiesFile);
        Logging logging = graphDatabase.getDependencyResolver().resolveDependency(Logging.class);
        final Jetty9WebServer jettyWebServer = new Jetty9WebServer(logging); /* {
            @Override
            protected void startJetty() {
                final Server jettyServer = getJetty();
                jettyServer.setStopAtShutdown(true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.