APISonar


org.neo4j.kernel.logging.ConsoleLogger.log

> org > neo4j > kernel > logging > ConsoleLogger > log
org APIs neo4j APIs kernel APIs logging APIs ConsoleLogger APIs log APIs

Example 1
private final ConsoleLogger log;

    public void start() throws Throwable
    {
        try
        {
            this.graph = dbFactory.newGraphDatabase( getLocation(), dbConfig.getParams(), dependencies );
            isRunning = true;
            log.log( "Successfully started database" );
        }
        catch ( Exception e )
        {
            log.error( "Failed to start database.", e );
            throw e;
        }
    }
Example 2
private final ConsoleLogger log;

    public void start()
    {
        URI baseUri = managementApiUri();
        server.addJAXRSClasses( getClassNames(), baseUri.toString(), null );

        log.log( "Mounted REST API at: " + baseUri.toString() );
    }
Example 3
private final ConsoleLogger log;

	public void start()
    {
        this.packages = config.get( ServerSettings.third_party_packages );
        for ( ThirdPartyJaxRsPackage tpp : packages )
        {
            List<String> packageNames = packagesFor( tpp );
            Collection<Injectable<?>> injectables = extensionInitializer.initializePackages( packageNames );
            webServer.addJAXRSPackages( packageNames, tpp.getMountPoint(), injectables );
            log.log( "Mounted unmanaged extension [%s] at [%s]", tpp.getPackageName(), tpp.getMountPoint() );
        }
    }
Example 4
private final ConsoleLogger console;

    public void unelected( String role, InstanceId instanceId, URI electedMember )
    {
        console.log( "Instance " + printId( instanceId, electedMember ) + "was demoted as " + role );
    }
Example 5
private final ConsoleLogger console;

    public void joinedCluster( InstanceId instanceId, URI member )
    {
        console.log( "Instance " + printId(instanceId, member) + " joined the cluster" );
    }
Example 6
private final ConsoleLogger console;

    public void memberIsUnavailable( String role, InstanceId unavailableId )
    {
        console.log( "Instance " + printId( unavailableId, null ) + "is unavailable as " + role );
    }
Example 7
private final ConsoleLogger console;

    private void catchUpWithMaster() throws IllegalArgumentException, InterruptedException
    {
        monitor.catchupStarted();
        RequestContext catchUpRequestContext = requestContextFactory.newRequestContext();
        console.log( "Catching up with master. I'm at " + catchUpRequestContext );

        // Unpause the update puller, because we know that we are a slave that just started communication with master.
        UpdatePuller updatePuller = resolver.resolveDependency( UpdatePuller.class );
        updatePuller.unpause();
        updatePuller.await( UpdatePuller.NEXT_TICKET );

        console.log( "Now caught up with master" );
        monitor.catchupCompleted();
    }
Example 8
private final ConsoleLogger console;

    public void enteredCluster( ClusterConfiguration clusterConfiguration )
    {
        myUri = clusterConfiguration.getUriForId( myId );
        console.log( String.format( "Instance %s joined the cluster", printId( myId, myUri )) );
    }
Example 9
private final ConsoleLogger console;

    public void available()
    {
        console.log( "Database available for write transactions" );
    }
Example 10
private final ConsoleLogger console;

    public void memberIsAvailable( String role, InstanceId availableId, URI atUri, StoreId storeId )
    {
        console.log( "Instance " + printId( availableId, atUri ) + "is available as " + role + " at " + atUri.toASCIIString() + " with " + storeId );
    }