Those two log statements are logged by the class PeerTypeRegistration. To
suppress these statements, you would have to customize the Geode log4j2.xml
to change logging for that one class from INFO to WARN. Something like the
following should work...

Copy geode-core/src/main/resources/log4j2.xml to a local directory and add
this line near the end before the line with </Loggers>:

    <Logger name="org.apache.geode.pdx.internal.PeerTypeRegistration"
level="WARN"/>

Then restart the server with this option:

    --J=-Dlog4j.configurationFile=path/to/log4j2.xml

On Wed, May 17, 2017 at 1:14 AM, Thacker, Dharam <
[email protected]> wrote:

> Hi Team,
>
>
>
> I want to turn on logging for query verbose information [Marked in Yellow]
> but do not want to turn on PDXType logging information [Marked in Green].
> As later one will blow off our shared splunk instance.
>
> If I set log-level as “warn”, it does not show me query debugging
> information. Is there any good way to configure the same?
>
>
>
> I am bootstrapping my geode server using,
>
>
>
> java –jar -Dgemfire.Query.VERBOSE=true MyServer.jar
>
>
>
> [info 2017/05/17 13:27:03.912 IST <Function Execution Processor2>
> tid=0x4c] Query Executed in 6.60487 ms; rowCount = 0; indexesUsed(0)
> "select * from /Event LIMIT 1000"
>
>
>
> [info 2017/05/17 13:28:27.364 IST <ServerConnection on port 40404 Thread
> 0> tid=0x50] Adding new type: PdxType[dsid=0, typenum=12739245
>
>         name=__GEMFIRE_JSON
>
>         fields=[
>
>         id:Object:0:idx0(relativeOffset)=0:idx1(vlfOffsetIndex)=-1
>
>         eventId:Object:1:1:idx0(relativeOffset)=0:idx1(vlfOffsetIndex)=1
>
>         intField:short:2:1:idx0(relativeOffset)=-2:idx1(vlfOffsetIndex)=2
>
>         currentDate:Object:3:2:idx0(relativeOffset)=0:idx1(
> vlfOffsetIndex)=2
>
>         legalDate:Object:4:3:idx0(relativeOffset)=0:idx1(
> vlfOffsetIndex)=3]]
>
>
>
> [info 2017/05/17 13:28:27.534 IST <ServerConnection on port 40404 Thread
> 0> tid=0x50] Caching PdxType[dsid=0, typenum=12739245
>
>         name=__GEMFIRE_JSON
>
>         fields=[
>
>         id:Object:0:idx0(relativeOffset)=0:idx1(vlfOffsetIndex)=-1
>
>         eventId:Object:1:1:idx0(relativeOffset)=0:idx1(vlfOffsetIndex)=1
>
>         intField:short:2:1:idx0(relativeOffset)=-2:idx1(vlfOffsetIndex)=2
>
>         currentDate:Object:3:2:idx0(relativeOffset)=0:idx1(
> vlfOffsetIndex)=2
>
>         legalDate:Object:4:3:idx0(relativeOffset)=0:idx1(
> vlfOffsetIndex)=3]]
>
>
>
> Thanks & Regards,
>
> Dharam
>
> This message is confidential and subject to terms at: http://
> www.jpmorgan.com/emaildisclaimer including on confidentiality, legal
> privilege, viruses and monitoring of electronic messages. If you are not
> the intended recipient, please delete this message and notify the sender
> immediately. Any unauthorized use is strictly prohibited.
>

Reply via email to