tag:blogger.com,1999:blog-3277088726597339855.post620410768999506512..comments2024-03-18T04:53:51.899-04:00Comments on Berke: Logging to Database With Enterprise Library Part IV - Tieing it all togetherJosh Berkehttp://www.blogger.com/profile/02158461087496114275noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-3277088726597339855.post-15295152553956824942009-03-14T01:31:00.000-04:002009-03-14T01:31:00.000-04:00Configuring stored procedure and connection is ver...Configuring stored procedure and connection is very easy, we can create a custom config section. <BR/><BR/>It gets a little bit tricker if we wanted to store the lambda expressions. We'd need to compile then at runtime which I know is possible, but not sure how to do that.<BR/><BR/>Also once you do that you would loose the type checking, and refactoring functionality.Josh Berkehttps://www.blogger.com/profile/02158461087496114275noreply@blogger.comtag:blogger.com,1999:blog-3277088726597339855.post-7027686944644345982009-03-14T00:05:00.000-04:002009-03-14T00:05:00.000-04:00Hey,Great work Josh. You made my life a lot easier...Hey,<BR/>Great work Josh. You made my life a lot easier. Is there any way I can configure this trace listener in web/app.config "completely"? With stored procedures,connection and all that? How can I read them.<BR/>Thanks<BR/>AnilAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3277088726597339855.post-40426828629488948512009-03-06T08:32:00.000-05:002009-03-06T08:32:00.000-05:00I'm not sure if the Email Author is working so you...I'm not sure if the Email Author is working so you can email me joshua[dot]berke[at]gmail[dot]com.Josh Berkehttps://www.blogger.com/profile/02158461087496114275noreply@blogger.comtag:blogger.com,1999:blog-3277088726597339855.post-82345787187889493432009-03-06T08:25:00.000-05:002009-03-06T08:25:00.000-05:00Actually I have made progress. I have extracted th...Actually I have made progress. I have extracted the source code from my closed source project. I have not been able to setup tests to make sure it is working. If you email me I'll send you what I have.<BR/><BR/>You can email by clicking the Email Author link at the end of this post (Above the comments)Josh Berkehttps://www.blogger.com/profile/02158461087496114275noreply@blogger.comtag:blogger.com,1999:blog-3277088726597339855.post-91863358215509857892009-03-06T04:35:00.000-05:002009-03-06T04:35:00.000-05:00Hi, have you done some progress about publishing s...Hi, have you done some progress about publishing source code? :-)<BR/><BR/>Thanks<BR/><BR/>MirecMiroslav Galajdahttps://www.blogger.com/profile/03384832366059462325noreply@blogger.comtag:blogger.com,1999:blog-3277088726597339855.post-8847720371497356942009-02-13T20:09:00.000-05:002009-02-13T20:09:00.000-05:00Thanks I'll see what I can do it's been a crazy ti...Thanks I'll see what I can do it's been a crazy time for me.Josh Berkehttps://www.blogger.com/profile/02158461087496114275noreply@blogger.comtag:blogger.com,1999:blog-3277088726597339855.post-68353186959788782012009-02-13T04:11:00.000-05:002009-02-13T04:11:00.000-05:00Hi, it would be great to publish source code for t...Hi, it would be great to publish source code for that. It looks great.<BR/>ThanksMiroslav Galajdahttps://www.blogger.com/profile/03384832366059462325noreply@blogger.comtag:blogger.com,1999:blog-3277088726597339855.post-27824934895105477822009-01-08T11:50:00.000-05:002009-01-08T11:50:00.000-05:00Not to mention their source code which caused all ...Not to mention their source code which caused all zune's to hang...Examples like that remind me why I love developing server applications, a bug occurs, and I only have to go one place to fix it.<BR/><BR/>I'll look at pastie and if I can get some time I'll try and put all the source together out there. (I'll have to strip some propietery stuff so it's a little more involved then copy paste...)<BR/><BR/>Thanks NitinJosh Berkehttps://www.blogger.com/profile/02158461087496114275noreply@blogger.comtag:blogger.com,1999:blog-3277088726597339855.post-21937085683549874742009-01-08T11:47:00.000-05:002009-01-08T11:47:00.000-05:00Pastie.org has become really popular, mostly due t...Pastie.org has become really popular, mostly due to the Microsoft Zune source code that was posted on it :-)<BR/><BR/>The guys at Microsoft are probably upset over it - their source code (even though it's just a part) is online and available for all to see!Nitin Reddy Katkamhttps://www.blogger.com/profile/09612217398194148324noreply@blogger.comtag:blogger.com,1999:blog-3277088726597339855.post-71943487845919436982009-01-08T11:28:00.000-05:002009-01-08T11:28:00.000-05:00@Anon if your able to post your source somewhere t...@Anon if your able to post your source somewhere that would be helpful. Which line is failing in the TraceData method? The code I have is doing a cast using the "as" operator, which will result in a null if it's unable to cast it. <BR/><BR/>Did you perhaps do AuditLogEntry ale = (AuditLogEntry)data;<BR/><BR/>That would result in the exception. If you need more help just give us more details, we'd love to help. <BR/><BR/>On a side note I am stoked that other people are actually looking at this and trying to get it working. Makes blogging worthwhile.Josh Berkehttps://www.blogger.com/profile/02158461087496114275noreply@blogger.comtag:blogger.com,1999:blog-3277088726597339855.post-60226664898406401102009-01-08T09:48:00.000-05:002009-01-08T09:48:00.000-05:00@J/AnonymousHi!Can you post the source code & ...@J/Anonymous<BR/><BR/>Hi!<BR/><BR/>Can you post the source code & the config file, or send me your messenger (Yahoo/GTalk/MSN.. I rarely use Skype) ID?<BR/><BR/>-NitinNitin Reddy Katkamhttps://www.blogger.com/profile/09612217398194148324noreply@blogger.comtag:blogger.com,1999:blog-3277088726597339855.post-16071124326734370522009-01-08T05:04:00.000-05:002009-01-08T05:04:00.000-05:00Hi I followed this method. and getting an exceptio...Hi I followed this method. and getting an exception in override TraceData()<BR/><BR/>Unable to cast object of type 'CustomLogger.AuditLogEntry' to type 'CustomLogger.AuditLogEntry'.<BR/><BR/>Thanks for any help<BR/>JAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3277088726597339855.post-84874096861257177432008-12-29T15:28:00.000-05:002008-12-29T15:28:00.000-05:00I'm here just extremly busy...and haven't come up ...I'm here just extremly busy...and haven't come up with my next post yet. This is a really busy time of year for me.Josh Berkehttps://www.blogger.com/profile/02158461087496114275noreply@blogger.comtag:blogger.com,1999:blog-3277088726597339855.post-21015766366298131122008-12-29T13:29:00.000-05:002008-12-29T13:29:00.000-05:00Hi Josh!You haven't posted anything in a while. Ar...Hi Josh!<BR/><BR/>You haven't posted anything in a while. Are you away for the holiday?<BR/><BR/>-NitinNitin Reddy Katkamhttps://www.blogger.com/profile/09612217398194148324noreply@blogger.comtag:blogger.com,1999:blog-3277088726597339855.post-56995547833210574762008-12-26T11:45:00.000-05:002008-12-26T11:45:00.000-05:00I will have a look at your blog thanks. I've used ...I will have a look at your blog thanks. I've used log4net a bit (I'm using nHibernate so its sort of been forced into my environment). I started using EntLib back in v1 just for the logging block as I got tired of writting loggers, so I'm sort of used to how its configured and works. <BR/><BR/>My choice between the two is soley on famillarity. They both solve the same problem with great effectivnessJosh Berkehttps://www.blogger.com/profile/02158461087496114275noreply@blogger.comtag:blogger.com,1999:blog-3277088726597339855.post-71356069419190924262008-12-26T10:09:00.000-05:002008-12-26T10:09:00.000-05:00There are 3 ways to go about defining validators -...There are 3 ways to go about defining validators - attributes, code or XML.<BR/><BR/>I whipped together a quick set of not null validations for a project I worked on earlier, but now that I've got some time I'm looking at the other validators and am blogging about them.<BR/><BR/>Perhaps you can check out my blog posts to get started:<BR/><BR/><B>Quick Start</B><BR/><A HREF="http://knitinr.blogspot.com/2008/12/simple-ms-enterprise-library-validation.html" REL="nofollow"><BR/>http://knitinr.blogspot.com/2008/12/simple-ms-enterprise-library-validation.html</A><BR/><BR/><B>Types of Validators (1 of 2)</B><BR/><A HREF="http://knitinr.blogspot.com/2008/12/enterprise-library-vab-validators-part.html" REL="nofollow"><BR/>http://knitinr.blogspot.com/2008/12/enterprise-library-vab-validators-part.html</A><BR/><BR/>I'm coming up with another blog post on validators soon.<BR/><BR/><BR/>I didn't spend too much time with the Logging Application Block, but I'll make sure I catch up with all of your entries about it. So far the Enterprise Library Logging Application Block hasn't been my choice for logging - I prefer using Log4Net instead.Nitin Reddy Katkamhttps://www.blogger.com/profile/09612217398194148324noreply@blogger.comtag:blogger.com,1999:blog-3277088726597339855.post-7899290224502296392008-12-26T09:44:00.000-05:002008-12-26T09:44:00.000-05:00I've never looked at it, but I think I will it sou...I've never looked at it, but I think I will it sounds interestingJosh Berkehttps://www.blogger.com/profile/02158461087496114275noreply@blogger.comtag:blogger.com,1999:blog-3277088726597339855.post-43075119243297829612008-12-25T12:19:00.000-05:002008-12-25T12:19:00.000-05:00You should check out the Validation Application Bl...You should check out the Validation Application Block in the Enterprise Library. It's simply amazing!<BR/><BR/>Imagine being able to define validators with XML so you can change validations in your application without touching the code.Nitin Reddy Katkamhttps://www.blogger.com/profile/09612217398194148324noreply@blogger.com