with dm-hibernate-adapter or better call it dm-jpa-adapter (http://
github.com/mkristian/jibernate) I get a powerful java logging
framework slf4j - just a word about this: in java there a sooo many
different logging frameworks around and whenever I library uses one
then your project is forced to use it too. so I had situations where I
needed to configure up to three different logging frameworks.
slf4j.org unifies this mess by providing an API and adapters to bridge
all these logging frameworks to the one you choose for your project
(only one for your project !!).

in ruby the situation is different - everyone just implements its own
logging framework. . . .

with jibernate I am getting slf4j and just pass a wrapper to
datamapper.

so there are two points here:

* the log output of JPA/hibernate is amazingly reach: 
http://gist.github.com/402681
  and you can easily filter the output either with grep ( | grep
org.hibernate.connection.DriverManagerConnectionProvider) or via the
config to set
  the log level for a specific category top debug or so. usually these
logging frameworks
  allow to even log as "email" for certain categories/log-levels . . .
and there are ruby frameworks like log4r and logging around having the
similar feature set

* it would so nice if DM could use slf4j in case it is on the
classpath, i.e. joining the only feasible java logging framework
around and avoid to add a ruby logging on top of the java mess. for
jibernate I use the slf4r gem which just falls back on slf4j if
available and I get nice categories for the ruby part as well.

and I saw that there is very little logging done in DM and do I miss
the IdentityMap and the connection pool in the debug log !! maybe that
was my third point :-)

with regards
Kristian

PS let me know if you WANT something of this, I might be able to find
time to do it ;-)

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" 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/datamapper?hl=en.

Reply via email to