tag:blogger.com,1999:blog-8085117242240449595.post7141435875859236530..comments2023-12-21T05:46:31.718-05:00Comments on Muhammad Shujaat Siddiqi: Semantic Out-Process Logging using Semantic Logging Application Block - File SinkMuhammad Shujaat Siddiqihttp://www.blogger.com/profile/02519138704633566929noreply@blogger.comBlogger23125tag:blogger.com,1999:blog-8085117242240449595.post-5177831924367207002016-02-03T16:38:16.161-05:002016-02-03T16:38:16.161-05:00I wanted to use this, was wondering if this would ...I wanted to use this, was wondering if this would fit my requirement or not. My scenario:<br />-- I have a loadable dll where logging needs to be implemented. The main application can load my dll any number of times from single or multiple instances.<br /><br />Was wondering if semantic is the right choice.Somya Bhargavahttps://www.blogger.com/profile/14737064946068803668noreply@blogger.comtag:blogger.com,1999:blog-8085117242240449595.post-91844656062105538832015-02-12T13:26:15.443-05:002015-02-12T13:26:15.443-05:00Hi Sini, Can you check the permissions on your fol...Hi Sini, Can you check the permissions on your folder?Muhammad Shujaat Siddiqihttps://www.blogger.com/profile/02519138704633566929noreply@blogger.comtag:blogger.com,1999:blog-8085117242240449595.post-54853304001615677692015-02-11T10:58:49.070-05:002015-02-11T10:58:49.070-05:00i cannot log in custom folder in windows event log...i cannot log in custom folder in windows event log using SLAB out of process. please guide meAnonymoushttps://www.blogger.com/profile/03525372537139407705noreply@blogger.comtag:blogger.com,1999:blog-8085117242240449595.post-29672447279092289652015-02-11T10:58:45.703-05:002015-02-11T10:58:45.703-05:00i cannot log in custom folder in windows event log...i cannot log in custom folder in windows event log using SLAB out of process. please guide meAnonymoushttps://www.blogger.com/profile/03525372537139407705noreply@blogger.comtag:blogger.com,1999:blog-8085117242240449595.post-6244211651522671872015-02-11T07:13:30.188-05:002015-02-11T07:13:30.188-05:00I am unable to log in custom folder in event viewe...I am unable to log in custom folder in event viewer using Semantic out of process. please helpAnonymoushttps://www.blogger.com/profile/03781017989308030061noreply@blogger.comtag:blogger.com,1999:blog-8085117242240449595.post-7391433819388694692014-03-18T01:46:31.421-04:002014-03-18T01:46:31.421-04:00Yes, seems it is machine issue. I was able to star...Yes, seems it is machine issue. I was able to start as service in others system and even the logs are written in server when I used another EventSource class. Thanks for your help Muhammad.Nazeer ..........New Navigatorhttps://www.blogger.com/profile/06151803586706422456noreply@blogger.comtag:blogger.com,1999:blog-8085117242240449595.post-20179415525120904342014-03-17T10:07:24.143-04:002014-03-17T10:07:24.143-04:00Hmm, These seem to be machine specific issues. I t...Hmm, These seem to be machine specific issues. I think your network administrator should be able to help fixing tracing the causes. Let me know how it goes.Muhammad Shujaat Siddiqihttps://www.blogger.com/profile/02519138704633566929noreply@blogger.comtag:blogger.com,1999:blog-8085117242240449595.post-15941572370820041112014-03-14T02:01:58.202-04:002014-03-14T02:01:58.202-04:00Also, I am getting error while I start the Semanti...Also, I am getting error while I start the SemanticLogging as windows service "SemanticLogging-svc.exe -s"<br /><br />"Cannot start Enterprise Library Semantic Logging as window service on this Computer"<br /><br />This is happening in my local system but not in server. I wonder why?Nazeer ..........New Navigatorhttps://www.blogger.com/profile/06151803586706422456noreply@blogger.comtag:blogger.com,1999:blog-8085117242240449595.post-84222552104308109282014-03-13T22:05:20.331-04:002014-03-13T22:05:20.331-04:00In that case, only having a personal look at the s...In that case, only having a personal look at the system should help. Since this is working fine on your machine, there should be no issues on the server as well. Muhammad Shujaat Siddiqihttps://www.blogger.com/profile/02519138704633566929noreply@blogger.comtag:blogger.com,1999:blog-8085117242240449595.post-6529615217424136702014-03-13T01:39:08.375-04:002014-03-13T01:39:08.375-04:00Yes Muhammad, I have checked all that. Even I impl...Yes Muhammad, I have checked all that. Even I implemented a small logic to write my custom message to another file in the same folder. This is working fine but Event source file is not getting written.Nazeer ..........New Navigatorhttps://www.blogger.com/profile/06151803586706422456noreply@blogger.comtag:blogger.com,1999:blog-8085117242240449595.post-83979535966056022082014-03-12T22:33:50.663-04:002014-03-12T22:33:50.663-04:00Hi Nazeer, Can you check the account you are using...Hi Nazeer, Can you check the account you are using to run the service. You need to check that the account has rights on the destination folders.Muhammad Shujaat Siddiqihttps://www.blogger.com/profile/02519138704633566929noreply@blogger.comtag:blogger.com,1999:blog-8085117242240449595.post-57550901026552922232014-03-12T08:18:49.229-04:002014-03-12T08:18:49.229-04:00Hi Muhammad, one quick question about this-
First...Hi Muhammad, one quick question about this-<br /><br />Firstly, I am very thankful to you for the help your posts provided. I am able to achieve what I want in my local system successfully.<br /><br />But the same dll reference in dev server is not able to write any events to flat file sink. <br /><br />Here I started SemanticLogging as a Service, I see the file sink is getting created while service starts but no events written to file. <br /><br />The same scenario tried in my local system works perfectly. <br /><br />Can you suggest me some thing to check and to configure to resolve it in server. Thanks!Nazeer ..........New Navigatorhttps://www.blogger.com/profile/06151803586706422456noreply@blogger.comtag:blogger.com,1999:blog-8085117242240449595.post-89813400622999680452014-03-12T08:18:09.326-04:002014-03-12T08:18:09.326-04:00This comment has been removed by the author.Nazeer ..........New Navigatorhttps://www.blogger.com/profile/06151803586706422456noreply@blogger.comtag:blogger.com,1999:blog-8085117242240449595.post-83367457606391441962014-03-12T08:15:04.576-04:002014-03-12T08:15:04.576-04:00This comment has been removed by the author.Nazeer ..........New Navigatorhttps://www.blogger.com/profile/06151803586706422456noreply@blogger.comtag:blogger.com,1999:blog-8085117242240449595.post-45081625088684873322013-12-19T22:48:03.102-05:002013-12-19T22:48:03.102-05:00Can you also provide your EventSource and configur...Can you also provide your EventSource and configuration for Semantic Logging service? <br /><br />BTW, you don't have to use EventLog separately. I have a post about using EventSource for writing to Windows Event Log. You can also refer to my session at South West Florida Code Camp for this. Muhammad Shujaat Siddiqihttps://www.blogger.com/profile/02519138704633566929noreply@blogger.comtag:blogger.com,1999:blog-8085117242240449595.post-41240557412556225862013-12-19T09:23:10.715-05:002013-12-19T09:23:10.715-05:00Hi Muhammad, this this is working very fine as pot...Hi Muhammad, this this is working very fine as potraid. When I put logging sentences in a console app, it is perfectly logging events to flat file but in my application it is unable to log events from.<br /><br />Actually I am working a BizTalk project where I am developing a custom pipeline to promote a GUID for my msg. There if GUID is promoted, I need to log an event saying the same. This is where it is failing.<br /><br />my custom component sits in a pipeline and pipeline in a port, which is hosted in a different, but local server,"BizTalkApplicationServer", which is why it is unable to log events I believe. Could u too analisye and let me know ur inputs. Thanks a lot. Nazeer ..........New Navigatorhttps://www.blogger.com/profile/06151803586706422456noreply@blogger.comtag:blogger.com,1999:blog-8085117242240449595.post-81041683875383569162013-12-19T08:51:33.518-05:002013-12-19T08:51:33.518-05:00I cannot put whole source application code, but ma...I cannot put whole source application code, but main logging section I am putting. Hope you can understand. Thanks!<br /><br />if (CorlIDP != null)<br /> {<br /> //Already Promoted.<br /> //Write to Log, database<br /> CustomPPLogging.Log.CorrelIDExists(CorlIDP.ToString());<br /> <br /> System.Diagnostics.EventLog.WriteEntry("CorrelID-AlreadyPresennt", CorlIDP.ToString());<br /> System.Diagnostics.EventLog.WriteEntry("TwoWayPort", Is2Way.ToString());<br /> }<br /> else<br /> {<br /> System.Diagnostics.EventLog.WriteEntry("CorrelID-Created", Is2Way.ToString());<br /> pInMsg.Context.Promote("CorrelationID", NewNameSpace, guid.ToString());//Write to log, database<br /> <br /> CustomPPLogging.Log.CorrelIDPromoted(guid.ToString());<br /> }Nazeer ..........New Navigatorhttps://www.blogger.com/profile/06151803586706422456noreply@blogger.comtag:blogger.com,1999:blog-8085117242240449595.post-36741788999971293872013-12-19T08:27:03.967-05:002013-12-19T08:27:03.967-05:00Also, we shouldn't be required to do anything ...Also, we shouldn't be required to do anything extra for ETW registration. That's actually one of the documented advantages of using EventSource.Muhammad Shujaat Siddiqihttps://www.blogger.com/profile/02519138704633566929noreply@blogger.comtag:blogger.com,1999:blog-8085117242240449595.post-82134427904071537422013-12-19T08:25:35.951-05:002013-12-19T08:25:35.951-05:00Can you share your code? I can give it a look.Can you share your code? I can give it a look.Muhammad Shujaat Siddiqihttps://www.blogger.com/profile/02519138704633566929noreply@blogger.comtag:blogger.com,1999:blog-8085117242240449595.post-56819607427875187342013-12-19T06:54:04.857-05:002013-12-19T06:54:04.857-05:00Hi Muhammad, The only issue is the logs are not wr...Hi Muhammad, The only issue is the logs are not written to flat file sink. Also, I cud not run your sample code as I got error to download it. I have implemented in-process well. but in out-or-process I am getting this issue.<br /><br />1. I have my EventSource class created.<br /><br />2. I have my source application.<br />3. I have written log statements only (no listner created) in my code.<br /><br />4. configured the config file to Flat file sink. <br /><br />I have done exactly as you shown in this post. <br />I have a question whether I need to do anything from ETW end to log my application events?<br /><br />Thanks in Advance.Nazeer ..........New Navigatorhttps://www.blogger.com/profile/06151803586706422456noreply@blogger.comtag:blogger.com,1999:blog-8085117242240449595.post-29635794231656000982013-12-18T21:44:07.016-05:002013-12-18T21:44:07.016-05:00Hi Nazeer ..........New Navigator, You have provid...Hi Nazeer ..........New Navigator, You have provided no details of your problem, Is the project provided for download working fine for you?Muhammad Shujaat Siddiqihttps://www.blogger.com/profile/02519138704633566929noreply@blogger.comtag:blogger.com,1999:blog-8085117242240449595.post-44758377008982923592013-12-18T08:02:44.368-05:002013-12-18T08:02:44.368-05:00Can you please help me with this, I am unable to w...Can you please help me with this, I am unable to write logs to flatfile. I dont see any issue with the implementation, I have done as you shown but seems to be some configuration issue. Please reply me asap.Nazeer ..........New Navigatorhttps://www.blogger.com/profile/06151803586706422456noreply@blogger.comtag:blogger.com,1999:blog-8085117242240449595.post-3293421844253464162013-12-18T08:01:23.458-05:002013-12-18T08:01:23.458-05:00I am unable to write the logs to flatfile using OU...I am unable to write the logs to flatfile using OUT-OF-Process. I dont see any issue with the implementation but no idea what is wrong. Can you please help with this?Nazeer ..........New Navigatorhttps://www.blogger.com/profile/06151803586706422456noreply@blogger.com