Question

I'd like to print out SQL statements in NHibernate log file without certain blob-type column contents, which really fill up the space and make the whole thing unreadable.

Is this possible somehow, e.g. to apply a filter on logged columns? Maybe another option might be setting a limit on the number of printed characters.

Update: NHibernate version is 3.1.0.4000.

Was it helpful?

Solution

What version of NHibernate are you using? Since 3.2.0.Alpha1 NHibernate truncates strings to 1000 chars and byte arrays (blobs) to 128 bytes.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top