Loggin ebean.properties

1,058 views
Skip to first unread message

Gadille Lionel

unread,
Dec 2, 2012, 2:39:07 PM12/2/12
to eb...@googlegroups.com
Hello,

I try to configure the loggin level but i can't turn off some trace



# ------------------------------------------------------------- 
# Load (Dev/Test/Prod) properties external to your war/jar 
# ------------------------------------------------------------- 
# You can use load.properties to load the properties from a 
# file external to your war/jar.  
#load.properties.override=${CATALINA_HOME}/conf/myapp.ebean.properties 
#http://code.google.com/p/copy-con-goodies/source/browse/trunk/avajeDemo/resources/ebean.properties?spec=svn3&r=3
ebean.ddl.generate=true
ebean.ddl.run=true

ebean.debug.sql=false
ebean.debug.lazyload=false


# ------------------------------------------------------------- 
# Transaction Logging 
# ------------------------------------------------------------- 
 
# Use java util logging to log transaction details 
#ebean.loggingToJavaLogger=true 
 
# General logging level: (none, explicit, all) 
ebean.logging=none
 
# Sharing log files: (none, explicit, all) 
ebean.logging.logfilesharing=none
 
# location of transaction logs  
ebean.logging.directory=logs 
#ebean.logging.directory=${catalina.base}/logs/trans 
 
# Specific Log levels (none, summary, binding, sql) 
ebean.logging.iud=sql 
ebean.logging.query=sql 
ebean.logging.sqlquery=sql 
 
ebean.logging.txnCommit=none 


And the trace i can't remove
ec 02, 2012 8:23:11 PM com.avaje.ebean.Ebean <clinit>
INFO: Ebean Version[2.7.0-SNAPSHOT] Java Version[1.7.0_09]
Dec 02, 2012 8:23:11 PM com.avaje.ebeaninternal.server.cluster.ClusterManager <init>
INFO: ... no ClusterManager broadcast
Dec 02, 2012 8:23:11 PM com.avaje.ebeaninternal.server.core.BootupClassPathSearch search
INFO: Classpath search hits in jars[ebean-2.7.1.jar] pkgs[model, com.avaje.ebeaninternal.server.bean, com.avaje.ebean.meta]  searchTime[52]
Dec 02, 2012 8:23:11 PM com.avaje.ebeaninternal.server.lib.sql.DataSourcePool initialise
INFO: DataSourcePool [h2] autoCommit[false] transIsolation[READ_COMMITTED] min[1] max[25]
Dec 02, 2012 8:23:11 PM com.avaje.ebeaninternal.server.core.DefaultServerFactory setDatabasePlatform
INFO: DatabasePlatform name:h2 platform:h2
Dec 02, 2012 8:23:11 PM com.avaje.ebeaninternal.server.subclass.SubClassManager$1 run
INFO: SubClassFactory parent ClassLoader [sun.misc.Launcher$AppClassLoader]
Dec 02, 2012 8:23:11 PM com.avaje.ebeaninternal.server.deploy.DeployOrmXml findAllOrmXml
INFO: No deployment xml (orm.xml etc) was loaded.
Dec 02, 2012 8:23:11 PM com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager logStatus
INFO: Entities enhanced[0] subclassed[4]
Dec 02, 2012 8:23:11 PM com.avaje.ebeaninternal.server.autofetch.DefaultAutoFetchManagerLogging logToJavaLogger
INFO: AutoFetch queryTuning[false] profiling[false] mode[DEFAULT_ONIFEMPTY]  profiling rate[0.05] min[1] base[10]
runScript
executing 1 of 4 SET REFERENTIAL_INTEGRITY FALSE
executing 2 of 4 drop table if exists groups
executing 3 of 4 SET REFERENTIAL_INTEGRITY TRUE
executing 4 of 4 drop sequence if exists groups_seq
... end of script
runScript
executing 1 of 2 create table groups (name                      varchar(255) not null,constraint...
executing 2 of 2 create sequence groups_seq
... end of script

thanks
 

edge

unread,
Dec 4, 2012, 1:11:08 PM12/4/12
to eb...@googlegroups.com
you are referring to "executing 1 of ....." ?

You can't turn it off at the moment and its a bug - we need to add the following to the DDLGenerator code

this.debug = serverConfig.isDebugSql();

 

edge

unread,
Dec 4, 2012, 1:41:38 PM12/4/12
to eb...@googlegroups.com
logged as BUG 434

Gadille Lionel

unread,
Dec 4, 2012, 2:44:22 PM12/4/12
to eb...@googlegroups.com


Hello,

First thanks for this answer .... i turn around web a lot to understood how to deal with this trace
Usually i use ebean in play framework and inside is ok
but i try to use it out the framework (with maven and swing project)

I look also for the other trace
Dec 04, 2012 8:39:49 PM com.avaje.ebean.Ebean <clinit>

INFO: Ebean Version[2.7.0-SNAPSHOT] Java Version[1.7.0_09]
Dec 04, 2012 8:39:49 PM com.avaje.ebeaninternal.server.cluster.ClusterManager <init>

I also try to put a logger.xml and a log4j.xml
with (for logger.xml)
  <logger name="com.avaje" level="ERROR" />

and
   <!--  Ebean -->
    <logger name="com.avaje">
        <level value="error"/>
    </logger>

but without success







 

Viktor Koop

unread,
Aug 1, 2013, 1:34:47 PM8/1/13
to eb...@googlegroups.com
Yet no change to change it? Would be really interesting to disable the output.

Rob Bygrave

unread,
Aug 1, 2013, 5:34:44 PM8/1/13
to eb...@googlegroups.com
Yes, the logging has moved to SLF4J and the transaction logging completely changed - look at the wiki on github for more details.

--
 
---
You received this message because you are subscribed to the Google Groups "Ebean ORM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ebean+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Message has been deleted

Daryl Stultz

unread,
Feb 24, 2014, 10:01:48 AM2/24/14
to eb...@googlegroups.com


On Mon, Feb 24, 2014 at 9:38 AM, Gadille Lionel <gad...@gmail.com> wrote:

To other people who look for shut up  (silent) ebean

For development environments, I recommend printing the ebean SQL to the console so you can see where Ebean is issuing lazy loading. This can reveal opportunities for optimization.

/Daryl
Message has been deleted

Rob Bygrave

unread,
Feb 24, 2014, 3:23:32 PM2/24/14
to ebean@googlegroups
>> ebean.log.level=0

Just note was for 2.x and not current information. Refer to https://github.com/ebean-orm/avaje-ebeanorm/wiki/Logging 


On 25 February 2014 04:15, Gadille Lionel <gad...@gmail.com> wrote:


Le lundi 24 février 2014 15:38:28 UTC+1, Gadille Lionel a écrit :

To other people who look for shut up  (silent) ebean


Reply all
Reply to author
Forward
0 new messages