Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-6700

Reduce verbose and unnecessary log output

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      When starting an Apache Geode ClientCache application with the following Log4j configuration:

      <?xml version="1.0" encoding="UTF-8"?>
      <Configuration status="error">
      
      	<Appenders>
      		<Console name="Console" target="SYSTEM_OUT">
      			<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{1.} - %msg%n"/>
      		</Console>
      		<File name="File" fileName="build/logs/spring-test.log">
      			<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{1.} - %msg%n"/>
      		</File>
      		<Null name="nop"/>
      	</Appenders>
      
      	<Loggers>
      		<Logger name="org.apache" level="error"/>
      		<Root level="error">
      			<AppenderRef ref="Console"/>
      			<!--AppenderRef ref="File" /-->
      		</Root>
      	</Loggers>
      
      </Configuration>
      
      

      Apache Geode still outputs the following, useless error messages:

      17:54:55.302 [main] ERROR o.a.g.c.c.i.QueueManagerImpl - Could not find any server to create primary client queue on. Number of excluded servers is 1 and exception is no exception.
      17:54:55.304 [main] ERROR o.a.g.c.c.i.QueueManagerImpl - Could not initialize a primary queue on startup. No queue servers available.
      

      The reason this is useless in my UC is because my client application is entirely local, i.e. only contains LOCAL Regions.

      At best, the log messages should maybe only be logged at "warn".

      Attachments

        Activity

          People

            Unassigned Unassigned
            jblum John Blum
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: