You probably are putting show_sql = true in the hibernate.cfg.xml which logs every sql to the console.
Gustavo. On Sat, Sep 25, 2010 at 2:52 PM, alexey_baranov <[email protected]> wrote: > We use simple log4net configuration as in refference example > > <?xml version="1.0" encoding="utf-8" ?> > <log4net> > <!-- A1 is set to be a ConsoleAppender --> > <appender name="A1" type="log4net.Appender.ConsoleAppender"> > > <!-- A1 uses PatternLayout --> > <layout type="log4net.Layout.PatternLayout"> > <!-- Print the date in ISO 8601 format --> > <conversionPattern value="%date [%thread] %-5level %logger %ndc > - %message%newline" /> > </layout> > </appender> > > <!-- Set root logger level to DEBUG and its only appender to A1 --> > <root> > <level value="DEBUG" /> > <appender-ref ref="A1" /> > </root> > <!-- Logging OFF --> > <logger name="NHibernate"> > <level value="OFF" /> > </logger> > </log4net> > > We only change the last section <logger name="NHibernate"> to suppress > NHibernate logging. The most part of logging information become > hidden. But select statements are shown anyway. > > NHibernate: select obj0_.Id as Id0_, obj0_.Modifed as Modifed0_, > obj0_.Path as Path0_, obj0_.Namee as Namee0_, obj0_.IsFolder as > IsFolder0_, obj0_.Note as Note0_, obj0_.Created as Created0_, > obj0_.Ownerr as Ownerr0_, obj0_.Parent as Parent0_, obj0_.IPAddress as > IPAddress0_, obj0_.Model as Model0_, obj0_.T > > Tell us what logger do this message, we can suppress them. > > Thanks! > > > On Sep 25, 6:39 pm, Fabio Maulo <[email protected]> wrote: > > I don't like FWs wrapping NH's configuration. > > You can imagine how much I can like to wrap the configuration of others > FW. > > > > > > > > On Sat, Sep 25, 2010 at 9:22 AM, alexey_baranov <[email protected]> > wrote: > > > We do not see any log4net configuration file with NHibernate. Is it > > > programmatically configured? > > > > > On Sep 25, 7:55 am, Diego Mijelshon <[email protected]> wrote: > > > > NHibernate uses log4net (loggers start with NHibernate.*), so > > > checkhttp://logging.apache.org/log4net/index.html > > > > > > Diego > > > > > > On Fri, Sep 24, 2010 at 07:02, alexey_baranov <[email protected]> > > > wrote: > > > > > Hi! > > > > > > > Where is the best place to configure (override) NHibernate logging > > > > > system? We have tempararely disable logging at the standart output. > > > > > > > Thanks! > > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > Groups > > > > > "nhusers" group. > > > > > To post to this group, send email to [email protected]. > > > > > To unsubscribe from this group, send email to > > > > > [email protected]<nhusers%[email protected]> > <nhusers%[email protected]<nhusers%[email protected]> > > > > > <nhusers%[email protected]<nhusers%[email protected]> > <nhusers%[email protected]<nhusers%[email protected]> > > > > > > > > > . > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/nhusers?hl=en. > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "nhusers" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<nhusers%[email protected]> > <nhusers%[email protected]<nhusers%[email protected]> > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/nhusers?hl=en. > > > > -- > > Fabio Maulo > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
