This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Is there a way to log the SQL from CompleteUnitOfWork? I currently am calling Repository.CompleteUnitOfWork, and it is successfully completing, but nothing is being added to the database. Now, I am sure that there are issues with the domain model at the moment, but it would be nice to debug what is actually happening behind the scenes so that I can find how far it actually gets, and what is it that makes it successfully complete when it should not (or does not!) |
|
|
You just sometimes miss the simplest parts of a helpfile... That was easy! |
|
|
No problem, you just need to set a logger like so: LightSpeedContext.Logger = new ConsoleLogger(); Or in config: loggerClass="Mindscape.LightSpeed.Logging.ConsoleLogger, Mindscape.LightSpeed" ConsoleLogger comes with LightSpeed. Alternatively, you can provide a custom implementation of ILogger. |
|