Java Code Examples for org.elasticsearch.common.logging.Loggers#consoleLoggingEnabled()

The following examples show how to use org.elasticsearch.common.logging.Loggers#consoleLoggingEnabled() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConsoleAppender.java    From Elasticsearch with Apache License 2.0 5 votes vote down vote up
@Override
public void write(final byte[] b) throws IOException {
    if (!Loggers.consoleLoggingEnabled()) {
        return;
    }
    System.err.write(b);
}
 
Example 2
Source File: ConsoleAppender.java    From Elasticsearch with Apache License 2.0 5 votes vote down vote up
@Override

        public void write(final byte[] b, final int off, final int len)
                throws IOException {
            if (!Loggers.consoleLoggingEnabled()) {
                return;
            }
            System.err.write(b, off, len);
        }
 
Example 3
Source File: ConsoleAppender.java    From Elasticsearch with Apache License 2.0 5 votes vote down vote up
@Override
public void write(final int b) throws IOException {
    if (!Loggers.consoleLoggingEnabled()) {
        return;
    }
    System.err.write(b);
}
 
Example 4
Source File: ConsoleAppender.java    From Elasticsearch with Apache License 2.0 5 votes vote down vote up
@Override
public void write(final byte[] b) throws IOException {
    if (!Loggers.consoleLoggingEnabled()) {
        return;
    }
    System.out.write(b);
}
 
Example 5
Source File: ConsoleAppender.java    From Elasticsearch with Apache License 2.0 5 votes vote down vote up
@Override
public void write(final byte[] b, final int off, final int len)
        throws IOException {
    if (!Loggers.consoleLoggingEnabled()) {
        return;
    }
    System.out.write(b, off, len);
}
 
Example 6
Source File: ConsoleAppender.java    From Elasticsearch with Apache License 2.0 5 votes vote down vote up
@Override
public void write(final int b) throws IOException {
    if (!Loggers.consoleLoggingEnabled()) {
        return;
    }
    System.out.write(b);
}