Since NHibernate 3.0 you can use loquacious configuration
configuration.DataBaseIntegration(x =>
{
x.LogSqlInConsole = true;
x.LogFormattedSql = true;
});
Others info available at http://fabiomaulo.blogspot.com.ar/2009/07/nhibernate-configuration-through.html