Ich verstehe, dass die Frage ein wenig lustig klingen kann, aber wie deaktiviere ich die Anmeldung in Neo4j-Ogm? Ich habe eine logback.xml-Datei zu meinem conf-Verzeichnis hinzugefügt, das sich in meinem Klassenpfad befindet. Die logback.xml sieht wie folgt aus:So deaktivieren Sie die Anmeldung in Neo4j-Ogm
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!--
~ Set the required log level for the OGM components here.
~ To just see Cypher statements set the level to "info"
~ For finer-grained diagnostics, set the level to "debug".
-->
<logger name="org.neo4j.ogm" level="OFF" />
<root level="off">
<appender-ref ref="console" />
</root>
</configuration>
, die aus here genommen wird. Der Loglevel = off ist von here
Ich möchte mein Programm für die Produktion bereitstellen und ich brauche Protokolle von der Konsole. Aber mit Neo4j die Logdatei Anmeldung erhöht 1 GB pro Tag mit den folgenden Typ-Protokolle:
14:20:13.281 [Thread-14] DEBUG o.n.o.d.http.request.HttpRequest - Response is OK
14:20:13.289 [Thread-14] DEBUG org.neo4j.ogm.MetaData - looking for concrete class to resolve label: Leaf
14:20:13.289 [Thread-14] DEBUG org.neo4j.ogm.MetaData - concrete class found: com.mycompany.Leaf. comparing with what's already been found previously...
14:20:13.289 [Thread-14] DEBUG org.neo4j.ogm.MetaData - Page resolving class: com.mycompany.Leaf
14:20:13.290 [Thread-14] DEBUG org.neo4j.ogm.MetaData - looking for concrete class to resolve label: Root
etc...
Details:
Das Programm ist ein jsvc Daemon, der Konsole anmeldet log/log.txt.
Neo4j-Version: 2.0.0 - M01
java -version: oracle java 7
Haben Sie dieses Problem gelöst, weil es mich auch stört! – urosjarc
Nein. Ich schrieb meine eigene kleine Implementierung (die nur das tut, was ich will). – Vahagn