{"action":"created","issue":{"url":"https://api.github.com/repos/theburningmonk/ReactoKinesiX/issues/51","labels_url":"https://api.github.com/repos/theburningmonk/ReactoKinesiX/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/theburningmonk/ReactoKinesiX/issues/51/comments","events_url":"https://api.github.com/repos/theburningmonk/ReactoKinesiX/issues/51/events","html_url":"https://github.com/theburningmonk/ReactoKinesiX/issues/51","id":53808922,"number":51,"title":"Kinesis client app not logging+","user":{"login":"andyg75","id":9850196,"avatar_url":"https://avatars.githubusercontent.com/u/9850196?v=3","gravatar_id":"","url":"https://api.github.com/users/andyg75","html_url":"https://github.com/andyg75","followers_url":"https://api.github.com/users/andyg75/followers","following_url":"https://api.github.com/users/andyg75/following{/other_user}","gists_url":"https://api.github.com/users/andyg75/gists{/gist_id}","starred_url":"https://api.github.com/users/andyg75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyg75/subscriptions","organizations_url":"https://api.github.com/users/andyg75/orgs","repos_url":"https://api.github.com/users/andyg75/repos","events_url":"https://api.github.com/users/andyg75/events{/privacy}","received_events_url":"https://api.github.com/users/andyg75/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-01-08T22:21:28Z","updated_at":"2015-02-04T14:13:58Z","closed_at":null,"body":"We are using your ReactoKinesiX library for our C# Kinesis Consumer application. The application appears to be properly configured to initialize log4net, but nothing is being written to the log file we have configured.\r\n\r\nIn our AssemblyInfo.cs, we have included the following:\r\n<code>[assembly: log4net.Config.XmlConfigurator(ConfigFile = \"Log4Net.config\", Watch = true)]</code>\r\n\r\nIn our C# application, when starting the consumer, we do this:\r\n```\r\nSystem.IO.FileInfo log4netName = new System.IO.FileInfo(\"Log4Net.config\");\r\nXmlConfigurator.Configure(log4netName);\r\nfactory = new DBBufferAccumulatorFactory();\r\nvar accumulator = new DBBufferAccumulator();\r\naccumulator.StartRecordProcessing();\r\nDBBufferAccumulator.AwsEnvironment = AwsEnvironment;\r\n// Start a timer to flush the list to database.\r\napp = factory.RegisterWithKinesis(appName, streamName, workerId, awsEnvironment);\r\naccumulator.StartTimer(seconds);\r\n```\r\n\r\nWe have a file named Log4Net.config in the root folder of our application.\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<configuration>\r\n  <configSections>\r\n    <section name=\"log4net\" type=\"log4net.Config.Log4NetConfigurationSectionHandler,Log4net\"/>\r\n  </configSections> \r\n<log4net>\r\n    <appender name=\"LogFileAppender\" type=\"log4net.Appender.RollingFileAppender\">\r\n      <param name=\"File\" value=\"C:\\logfiles\\%Y-%m\\%Y%m%d\\kinesis.log\" />\r\n      <param name=\"AppendToFile\" value=\"true\" />\r\n      <rollingStyle value=\"Size\" />\r\n      <maxSizeRollBackups value=\"10\" />\r\n      <maximumFileSize value=\"100MB\" />\r\n      <staticLogFileName value=\"true\" />\r\n      <layout type=\"log4net.Layout.PatternLayout\">\r\n        <param name=\"ConversionPattern\" value=\"%-5p%d{yyyy-MM-dd hh:mm:ss} – %m%n\" />\r\n      </layout>\r\n    </appender>\r\n    <root>\r\n      <level value=\"DEBUG\" />\r\n      <appender-ref name=\"LogFileAppender\" />\r\n    </root>\r\n  </log4net>\r\n</configuration>\r\n```\r\n\r\nI'm at a loss here as to what we might be doing wrong...\r\n"},"comment":{"url":"https://api.github.com/repos/theburningmonk/ReactoKinesiX/issues/comments/72860302","html_url":"https://github.com/theburningmonk/ReactoKinesiX/issues/51#issuecomment-72860302","issue_url":"https://api.github.com/repos/theburningmonk/ReactoKinesiX/issues/51","id":72860302,"user":{"login":"andyg75","id":9850196,"avatar_url":"https://avatars.githubusercontent.com/u/9850196?v=3","gravatar_id":"","url":"https://api.github.com/users/andyg75","html_url":"https://github.com/andyg75","followers_url":"https://api.github.com/users/andyg75/followers","following_url":"https://api.github.com/users/andyg75/following{/other_user}","gists_url":"https://api.github.com/users/andyg75/gists{/gist_id}","starred_url":"https://api.github.com/users/andyg75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyg75/subscriptions","organizations_url":"https://api.github.com/users/andyg75/orgs","repos_url":"https://api.github.com/users/andyg75/repos","events_url":"https://api.github.com/users/andyg75/events{/privacy}","received_events_url":"https://api.github.com/users/andyg75/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T14:13:58Z","updated_at":"2015-02-04T14:13:58Z","body":"I tried grabbing a fresh copy of your source code, making some log4net config tweaks that I hoped would cause it to log, and recompiled it. Since then I haven’t been able to get anything working—even after having reverted back to your original pre-compiled dll. It isn’t handing over the shards to the consumer app being run from my desktop anymore, nor will it call our Process Records method. So I seem to have screwed things up on my end pretty thoroughly... At this point I don’t know that this logging disabled thing is a real clue, given how I seem to have broken everything else. I’m going to try again today starting from step 1 to try to get the basic functionality working from my desktop again. Yes, I’m fairly new to this if you hadn’t guessed already. ;)\r\n\r\nThanks,\r\nAndy\r\n\r\nFrom: Yan Cui [mailto:notifications@github.com]\r\nSent: Tuesday, February 03, 2015 4:47 PM\r\nTo: theburningmonk/ReactoKinesiX\r\nCc: Andy Gerard\r\nSubject: Re: [ReactoKinesiX] Kinesis client app not logging+ (#51)\r\n\r\nThat's interesting, my code checks if a logger's debug and info is enabled\r\nbefore attempting to use them so if they're disabled somehow then makes\r\nsense that it doesn't log anything.\r\n\r\nAny idea why they're disabled?\r\n\r\nOn Tue, Feb 3, 2015 at 7:27 PM, Andy Gerard <notifications@github.com<mailto:notifications@github.com>>\r\nwrote:\r\n\r\n> Found something interesting... when we try to Register the app, the\r\n> CreateNew method is working fine but apparently all of the error levels are\r\n> disabled.\r\n>\r\n> [image: kinesislogging]\r\n> <https://cloud.githubusercontent.com/assets/9850196/6027443/314da364-abb0-11e4-97d1-705fc4ea09c0.png>\r\n>\r\n> —\r\n> Reply to this email directly or view it on GitHub\r\n> <https://github.com/theburningmonk/ReactoKinesiX/issues/51#issuecomment-72716994>\r\n> .\r\n>\r\n\r\n—\r\nReply to this email directly or view it on GitHub<https://github.com/theburningmonk/ReactoKinesiX/issues/51#issuecomment-72741935>.\r\n\r\n\r\nThis email message, together with any attachments, contains information of Eliza Corporation which may be confidential, proprietary and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify the sender immediately by reply e-mail and then delete it from your system.\r\n"}}