That's my fault for not checking the doc. I tried <property name="openjpa.Log" value="DefaultLevel=none"/> and got an error.
I re-ran with <property name="openjpa.Log" value="none"/> and it looks like that "worked" for me with OpenJPA 1.2.0-SNAPHOT. Web Master, which version of OpenJPA are you using? -Mike On Mon, Apr 21, 2008 at 9:25 AM, Craig L Russell <[EMAIL PROTECTED]> wrote: > Hi Mike, > > According to the documentation, a setting of "none" is legal. Does it not > do the obvious: inhibit all messages? Seems we may have a bug, either in the > implementation or description of "none". > > Craig > > > On Apr 21, 2008, at 6:58 AM, Michael Dick wrote: > > Hi, > > > > If you want the bare minimum of messages to be logged you can specify > > <property name="openjpa.Log" value="DefaultLevel=FATAL"/> > > > > Unfortunately there's still the potential for some messages to be > > logged, > > but you can redirect the output to a file which might be a little > > cleaner : > > <property name="openjpa.Log" > > value=DefaultLevel=FATAL,File=/tmp/openjpa.log"/> > > > > Hope this helps, > > > > -Mike > > > > On Sun, Apr 20, 2008 at 7:20 PM, Web Master < > > [EMAIL PROTECTED]> > > wrote: > > > > I've had a great experience with OpenJPA thus far, until I went to > > > prepare > > > the app for a deployment to Production. For some reason, I cannot > > > find a > > > way to stop trace level output to the console/stdout. Unfortunately, > > > even > > > setting the openjpa.Log property to "none" had no effect. Anybody > > > seen > > > this > > > before? Below is my persistence.xml file > > > > > > > > > > > > <persistence xmlns="http://java.sun.com/xml/ns/persistence" > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > xsi:schemaLocation="http://java.sun.com/xml/ns/persistence > > > > > > http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" > > > version="1.0"> > > > > > > <persistence-unit name="brandDashboard" > > > transaction-type="RESOURCE_LOCAL"> > > > > > > > > > > > > <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider> > > > <class>com.myclass.Announcement</class> > > > <exclude-unlisted-classes>true</exclude-unlisted-classes> > > > <properties> > > > <property name="openjpa.jdbc.DBDictionary" value="oracle"/> > > > <property name="openjpa.jdbc.SynchronizeMappings" > > > > > > value="buildSchema(SchemaAction='add,deleteTableContents')"/> > > > <property name="openjpa.Log" value="none"/> > > > > > > </properties> > > > </persistence-unit> > > > > > > > > > <persistence-unit name="abbottSites" > > > transaction-type="RESOURCE_LOCAL"> > > > > > > > > > > > > <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider> > > > <class>com.myclass.Country</class> > > > <exclude-unlisted-classes>true</exclude-unlisted-classes> > > > > > > <properties> > > > <property name="openjpa.jdbc.DBDictionary" value="oracle"/> > > > <property name="openjpa.Log" value="none"/> > > > > > > </properties> > > > </persistence-unit> > > > > > > </persistence> > > > > > > > Craig Russell > Architect, Sun Java Enterprise System http://java.sun.com/products/jdo > 408 276-5638 mailto:[EMAIL PROTECTED] > P.S. A good JDO? O, Gasp! > >
