Great video and tutorial itself. Thanks! For those who look for quick links: Log4net setup 4:35 -> Step 1: Add log4net package 5:25 -> Step 2: Add log4net configuration 18:54 -> Step 3: Add log4net assembly 20:47 -> Step 4: Create log4net log reference 25:30 -> Step 5: Log messages 27:56 -> Creating LogHelper 32:37 -> Appenders 1:04:46 -> Filters 1:14:13 -> Conversion pattern
@kepisty9 жыл бұрын
No problem Timothy! Glad to help. :)
@stani1k4 жыл бұрын
Thanks!
@berkanbilgin22878 жыл бұрын
IF you go through with this tutorial, it takes about 2 and half hour (by stopping and continue during the video) and it totally worth it. I do appreciate that Tim, its a great tutorial. I couldn't learn more in 2 and a half hour about log4net. Cheers.
@רועיה7 жыл бұрын
i saw it just because this comment, and it is amazing video!
@IAmTimCorey7 жыл бұрын
Excellent. Glad it was worth the time.
@caspianlouis31093 жыл бұрын
Sorry to be off topic but does someone know a trick to log back into an instagram account..? I stupidly forgot the login password. I appreciate any help you can give me
@chipmitchell97157 жыл бұрын
This is one of the most thorough and well taught tutorials I have ever watched. I read the article on Code Project and struggled to implement log4net and all these advanced features. This video really filled in the cracks and was a great time saver. Thank you Tim. I will be subscribing to your other videos and articles.
@RalfsBalodis4 жыл бұрын
0:00 - Intro 2:53 - Getting Started: Creating console application 4:39 - Adding NuGet reference 5:25 - Configuration 18:54 - Assembly reference 20:48 - Creating log reference (instance) for each class or entire application 25:13 - Quick recap 25:27 - Log messages 27:10 - Note on System.Reflection 27:45 - Creating LogHelper 32:40 - Appenders: File Appender - write logs in text file 37:27 - Appenders: Rolling File Appender - control log text file file size and log file quantity 44:01 - Appenders: Ado .Net Appender 54:50 - Appenders: Other Appenders 58:32 - Filters: Log message Levels 1:04:46 - Filters: Level Range filter 1:07:33 - Filters: String Match filter, filter message fall through, filter order 1:10:40 - Filters: Level Match filter 1:12:26 - Conversion pattern 1:14:15 - Conversion pattern: Log Message info 1:20:29 - Log Message length 1:23:51 - Log Message :Custom info 1:29:14 - Log Message: Dynamic variable info 1:33:11 - Summary and concluding remarks I usually don't do these for videos, that already have time codes in the video description, but I figured that this was kinda long video and the time stamps could do with an update, so there... :) P.S. Hello Tim. If you will consider to update the time codes in the video description, I believe that they have to be in chronological order. Meaning that they have to start from zero:zero and there cannot be any other time code before that. That is, if you care for your video timeline to be split up in chapters :) I noticed, that if you have other time stamps before zero:zero mark, KZbin wont do that for you. Example: Your video "Top 10 Hidden Gems in Visual Studio"
@IAmTimCorey4 жыл бұрын
I have found the same, the automated chapter function has to start at 0:00 for best success.
@cmukesh198 жыл бұрын
One of the best tutorial out there on log4Net. Instead of just teaching on how to make it work by some magic configuration and code, this tutorial went into details on how things work and how to customize it to our requirements. That gives a lot of confidence and comfort in using this framework than copying the configurations from random sites. As others mentioned, the fonts are too small and if you are watching it on smaller device (even my 13" laptop display is small), you will have hard time watching it. I had to zoom my browser to 300%, and since most of the action is in top left screen that worked, but was awkward.
@YOUTUBE_IS_WOKE2 жыл бұрын
Thanks so much Tim, six years old video already, and yet very informative with my code. I never used this Log4Net before, so I needed to get my head around it fast for use in my current role!
@IAmTimCorey2 жыл бұрын
Great!
@edwardarundcosta67993 жыл бұрын
Excellent tutorial by Tim: addressing that critical point where the rubber, actually, hits the road ― ie where an end-Developer is indeed getting hands-on with an SDK..and has the VS IDE open in front of him/her to do some coding.
@IAmTimCorey3 жыл бұрын
Thank you!
@vedymin76 жыл бұрын
I thought: I need now some logger. I typed: C# logging. I saw: Tim Correy log4net tutorial 1:37h. I smiled :) Thank You Tim! Thanks to that tutorial I was able to find a really annoying bug in my app.
@IAmTimCorey6 жыл бұрын
Awesome!
@wadysawstiepanowicz95414 жыл бұрын
killed a day on various guides, but everything was very superficial, like now we’ll make config the whole end of the guide, very cool, thanks
@IAmTimCorey4 жыл бұрын
I'm glad this was helpful.
@DynamoTk8 жыл бұрын
Bro this is seriously a 200 bucks worth tutorial. Thanks so much for giving it for free. People like you make newbies in the IT community grow and thrive.
@anandmaran28608 жыл бұрын
Requires a great amount of patience to explain in detail. Great work! and a big thank you.
@MaayanSht7 жыл бұрын
As a first year student of computer science I must say this was amazing!, a clear and simple explanation . The web is full of information but when you new in the field you find your self opening more and more website for each second term you do not know and lose yourself. I tried to use written tutorials but it was my first time using app.confing and just this little problem made this confusing
@IAmTimCorey7 жыл бұрын
I'm glad you found it useful. Tell your friends. ;-)
@MaayanSht7 жыл бұрын
IAmTimCorey all ready posted it over study groups!
@IAmTimCorey7 жыл бұрын
Awesome! Thanks for the support and the recommendation.
@zithfrg8 жыл бұрын
One of the best tutorials in all of KZbin. Does not matter the topic, this is awesome!!!!!!
@zithfrg8 жыл бұрын
Yes man! The only thing you need to watch out for is the size of the text. It is very difficult to see!
@davidmagerman45534 жыл бұрын
Such a great tutorial! still relevant today. I struggled a little with the database connection string before realizing 3 things I'd done wrong in App.config: (1) the data source, I don't think I have something called "ApplicationDB", instead I was able to use "(LocalDb)\MSSQLLocalDB", (2) the initial catalog - since I created my own database from scratch I needed to supply the name "MyLogger", (3) a series of typos (resulting from copy & paste) meant that my parameter names didn't match the ones in the stored procedure. Persistence was key, and I was rewarded in the end. Thanks Tim!
@IAmTimCorey4 жыл бұрын
Thank you for sharing this. I'm sure it will help others! Keep up the great work!
@ecoldwell8 жыл бұрын
Timothy, you've done a great job in diving into the details of log4net. One minor comment though, is next time make the text just a bit bigger.
@banercoehsan7 жыл бұрын
A very good tutorial. An Excellent job.Just as a tip, please make the font size larger for the next videos since fonts are small and it is a bit annoying.
@nishant07kumar7 жыл бұрын
Agree on Font Size point. Awesome tutorial.
@MZ-uv3sr5 жыл бұрын
Sooo small. I gave up.
@AshrafSada4 жыл бұрын
Thank you great illustration, while reading documentation, I came across this "If the BufferSize is set to a value less than or equal to 1 then no buffering will occur. The logging event will be delivered synchronously (depending on the Lossy and Evaluator properties). Otherwise the event will be buffered."
@IAmTimCorey4 жыл бұрын
Yep. Not necessarily ideal for production but great for development.
@rajsekharbathula85118 жыл бұрын
This is a very good video for those who do not have knowledge on how to use Log4Net. Kudos to Timothy!!!
@SaveTheHedgehog7 жыл бұрын
great video. finished it. what I especially love is the fact that you made a branch of each section!
@IAmTimCorey7 жыл бұрын
Thanks!
@IchbinChandra7 жыл бұрын
Already added you in my Favorite playlist. Such an awesome video, cannot be simpler then this . Its already over midnight and I cannot stop myself to finish the tutorial.
@IchbinChandra7 жыл бұрын
Sure, time to rest/relax, as I know where to go to find the most satisfying answers, for my unsolved queries. thank you for being ingenious.
@cleissonvas99422 жыл бұрын
Best log4net content available on the internet. Really good, congratulations!
@IAmTimCorey2 жыл бұрын
Thank you!
@cleissonvas99422 жыл бұрын
@@IAmTimCorey Please let me know if you have content related to a transformation using log4net ? Because I need to put it in 3 environments. Development, Approval and Production.
@pickwick59367 жыл бұрын
Again you made something that looks complicated and difficult easy to understand and use. Just what I needed for an application I am writing, great tutorial!
@IAmTimCorey7 жыл бұрын
Excellent! I'm glad it was helpful.
@Getao73258 жыл бұрын
Thank you so much! I normally don't comment on KZbin videos, but you deserve one, especially after attentively sitting through the entire video. I'm a visual learner and what you did made all the research I did on my own click. If only you spent time on the SmtpAppender, because that alongside of the AdoNetAppender are the ones my company is using. Either way, you've gotten me 96% of the way there!! Thanks again.
@DelLee7 жыл бұрын
Great tutorial. Thanks for posting! In a future article or video it would be great to see how to use Log4net in a multi-project solution where more than one project can be set as the startup (eg, a project to run as console and another to run as a windows forms, while other projects exist for the data layer, etc.). What I have found so far with this is that I have to duplicate both the LogHelper class as well as the the App.Config settings in each projects that can be set as the startup, which is less than ideal. If I try to relocate into a common project referenced by both, logging does not work at all. I don't know if this is a true limitation of Log4net or something I have not done correctly. Again, thanks for posting and I plan to view some of your other videos as well!
@IAmTimCorey7 жыл бұрын
Great suggestion. I'll put that on the list. Thanks for watching.
@stani1k3 жыл бұрын
Thanks Tim! Best video covering log4net out here.
@IAmTimCorey3 жыл бұрын
Glad it was helpful!
@FEYSCONTROL5 жыл бұрын
Again - concise and consistent. Do you know that even your Code Project article is mentioned in a Pluralsight course? I got everything I need from your video so no need to watch a 3 times longer course.
@IAmTimCorey5 жыл бұрын
No, I didn't know that. Interesting. I'm glad you enjoyed the video.
@CyberAbyss0076 жыл бұрын
Thank you! Great tutorial. Getting the AdoNetAppender properly configured took a little effort including getting it to work with my local SQL server installation. SQL connection type and connection string values were tricky to get right depending on whether specific features were enabled or not. The samples on the Apache Log4net page and some experimentation got me to the finish line.
@IAmTimCorey6 жыл бұрын
I'm glad you got it to work.
@moihawk6665 жыл бұрын
rick, I'm having the same issues can you share connection types you tried or what I can try?
@achillenicola8 жыл бұрын
You are very clear in your explanations, without taking anything for granted. Thank you.
@ProjectBoredomKiller5 жыл бұрын
So far very happy with what I've been learning. Although I wasn't too familiar with the SQL section I typed it in just to get familiar with it. I've no database server set up and I've never used stored procedures. It's obvious that's a whole subject in itself.
@IAmTimCorey5 жыл бұрын
I'm glad you got a lot out of this video.
@idahir9 жыл бұрын
Awesome tutorial, very clear and concise , I learned log4Net in such a short period of time.
@kayyelle5 жыл бұрын
Thank you Tim, for making an excellent tutorial on log4net. Worth my time watching this. Please keep up the good work.
@IAmTimCorey5 жыл бұрын
You are most welcome. Thanks for watching.
@benjaminberger96295 жыл бұрын
One nice trick I found: add to your appSettings Tag. Makes it a lot easier to debug eg. the ADO Appender
@IAmTimCorey5 жыл бұрын
Nice! Thanks for sharing.
@ibrahimfarah7383 жыл бұрын
Thanks @ Tim, this video become my reference when ever i have issue in one of the projects i go to this video
@IAmTimCorey3 жыл бұрын
You are welcome.
@nfrick17 жыл бұрын
Thanks for this great tutorial. Unlike other books and tutorials that dump all the information on the viewer at once, you introduced a concept at a time with clear and easy to understand examples. The only possible thing to complain about is that the text is too small. I was able to watch it on a 21 inch monitor, but not sure if I could do the same on a notebook.
@IAmTimCorey7 жыл бұрын
Yep, the font size issue is one I know about but can't change in this video. All videos newer than it have the font size corrected though.
@vatsalmayer37258 жыл бұрын
Thanks for the video. It is simply awesome and useful. I heard of log4net but I don't know anything on how to use it but after watching this video I can simply start using it
@ipedros75 жыл бұрын
Very complete tutorial and well worth the hour. Even in this day in age. Cheers
@IAmTimCorey5 жыл бұрын
Thank you!
@Yupmoh9 жыл бұрын
One of the best tutorials i've ever seen, Thank you.
@coloradopav8 жыл бұрын
Really, really, really good! Well paced, easy to follow, very detailed.
@jayaramjs67776 жыл бұрын
How to add log4net file path when we deploy on linux.
@wazk2248 жыл бұрын
Thanks Timothy, very concise and very well presented.
@pranaygawand48845 жыл бұрын
thank you tim for such a awesome Log4net tutorial!
@IAmTimCorey5 жыл бұрын
You are welcome.
@davidnguyen90233 жыл бұрын
Thank you so much, you helped me with my "Software development tools" home assignment!
@IAmTimCorey3 жыл бұрын
You are welcome.
@ashwinimaddala8 жыл бұрын
Thanks Tim! very helpful illustration.
@harag97 жыл бұрын
I've never used log4net before and found this tutorial very good and clear, great work on doing this for us. However I wish you had more tutorials as it was really easy to pause the video and follow along. Any plans on doing a more advanced tutorial on log4net - e.g.. using .log4net files rather than .config etc. ? Keep up the great work!
@GudeDoc4 жыл бұрын
This was a really useful video and full of interessting information! Thank you
@IAmTimCorey4 жыл бұрын
Glad it was helpful!
@PerHultqvist7 жыл бұрын
Thanks for this video! I gave up the first time I tried to use log4net, but then I got this video on my recommended list on youtube, and NOW I get why I should use log4net! The people over at Apache(?) should all be fired for their shitty web site and lack of tutorials. They can keep the developers, they have done an excellent job, but the rest have to go :-)
@PerHultqvist7 жыл бұрын
Yeah, it's a little bit harsh. I just tried to make a point that documentation/tutorials are VERY important. So they can keep their jobs, as long as they promise to do their job better moving forwad :-) Developers are constantly trashed for their performance when programs fail, so why shouldn't everyone else get a little bit of that too? :-) And yeah, I fell into that trap too, people who write stuff on the internet that they would never say to a person face-2-face. My bad :-)
@erickmanuel23328 жыл бұрын
Thanks a ton for this video, I was lost till I saw this video
@jalbajiwaghmare44902 жыл бұрын
Great session. Tim you covered everything.
@IAmTimCorey2 жыл бұрын
Thanks!
@yankelsteinmetz88453 ай бұрын
Thanks Tim for another amazing video! You mentioned that the configuration file can be changed during production. I have applications that are deployed in Azure as App Services, I don't see where I can have access to my config file.
@IAmTimCorey3 ай бұрын
You can either modify the config file on disk in Azure (you do have access to the files) or you can override it with configuration settings in Azure itself.
@HongUtube20096 жыл бұрын
thanks for taking time creating this, it's been very helpful!
@IAmTimCorey6 жыл бұрын
You are most welcome. Thanks for watching.
@mpumenyathi42329 жыл бұрын
Great video. Got here via your code project article.
@joshzollinger51814 жыл бұрын
Great video. Gave me exactly what I needed, and even gave me some stuff I didn't know I needed. Keep it up and thank you.
@IAmTimCorey4 жыл бұрын
You are most welcome. Thanks for watching.
@narendrababu8907 жыл бұрын
Hi Tim, Thanks for the great video with simple and clean explanation, liked it a lot. Really awesome. I'm able to configure and log the issues now in my application. We are trying to implement the ELK stack in one of the application. Can you please make a video on logging mechanism using ELK stack. It would be a great help. Thank You.
@banercoehsan7 жыл бұрын
Thanks again for your nice tutorial. I have a small problem that you may have an answer for. I am interested in the last part of the tutorial for using global context properties. I have a filed named "state" in sql database, and I want to fill it when I am logging. I have these codes at the begining of the program SystemState systemState = new SystemState(States.Start); log4net.LogicalThreadContext.Properties["state"] = systemState; // it has public overrrid ToString() I set systemState properly when the state of the system changes. for example: systemState.Set(States.Initialize); // it sets a public property. actually it is equivalent to systemState.State = States.Initialize; DefinedStates.InitializationState(); // it does some things Log.Debug("here comes my message"); Everything is fine if I set the buffer size to 1. However, when I change the buffer size to 100, the state filed in the sql db is filled with the last assigned value! Notice that I do not set the context property every time. If I do, things are fine. It looks log4net only reads the global context property when it is going to write in sql db. any idea how to force log4net to read the property before writing that to sql? or maybe i am making a mistake somewhere. Thanks
@banercoehsan7 жыл бұрын
Thanks. It works now like a charm :)
@30856898 жыл бұрын
This videos are so helpful, please upload more videos.
@onigumo4 жыл бұрын
LOL I didn't expect you'd response that quickly, my question was "How can I log all the API calling details, like function names, parameters values", after 2 hours research I found a solution to do that which is manually ToString() all of them, I'd like a gun please.
@IAmTimCorey4 жыл бұрын
That doesn't sound right. The method name, sure. But the parameters, if they are coming in as one object, you can just serialize to JSON instead of manually stringifying each one. Just be careful not to log sensitive data.
@onigumo4 жыл бұрын
@@IAmTimCorey Cool, I'm only a beginner so that's my temporary solution, any tutorials about serializing to JSON?
@SimeonTheGamer7 жыл бұрын
Yes a very good tutorial. An Excellent job. Did really help more than any other video.
@rasimismatulin14008 жыл бұрын
Very useful tutorial. Let all the video tutorials will like it. Thanks!!
@SectionsixTube8 жыл бұрын
Very helpful. Thanks for taking the time to make this.
@mr-loki4 жыл бұрын
Tim, thanks a lot! Superb tutorial, exactly what I was looking for!
@IAmTimCorey4 жыл бұрын
Glad it was helpful!
@shashikant20116 жыл бұрын
WOW! Excellent tutorial, Thanks Tim
@IAmTimCorey6 жыл бұрын
You are most welcome. Thanks for watching.
@bhoopendrasharma94748 жыл бұрын
Thank you Tim for such a nice explanation about log4net, Lot of fundamentals got cleared for using log4net. I have one question: I want to create logs file with different names at runtime. I think some down in the comments asked similar question. Actually I am working on a application which generates invoices. Each invoice passes through hundreds of rules before calculating the amount. If I would have a separate log file for each invoice, then it would be easy for troubleshooting like which rule has passed which has failed and how the final value of amount would have calculated.
@jhillyt7 жыл бұрын
New to Log4Net; Great Video!
@jayeshthamke78608 жыл бұрын
Thanks for the video Tim, it was great! Also is there any viewer tool to see logged messages ?
@DEEPAKMISHRA-pl8jv5 жыл бұрын
TIM YOUR VOICE IS SO SO OOOOOOOOOOOOOOOOOOOOOOOO SWEET !!!!!!!!!!!!!!!!
@IAmTimCorey5 жыл бұрын
lol Thanks!
@khoatrandang70157 жыл бұрын
Thank Tim for an amazing and in depth tutorial. Could you please increase your font size a little big, cause its somewhat small :P. Overall, I have never watched any tutorial that come close to this.
@IAmTimCorey7 жыл бұрын
Unfortunately, I can't go back and make the font size bigger in this video. The videos I released after this video have all had larger font size.
@rdf53567 жыл бұрын
Unbelievably useful! Thanks Tim
@IAmTimCorey7 жыл бұрын
Excellent!
@ashishjain8717 жыл бұрын
This is a high quality video tutorial. Thanks for taking the time to create this. It is awesome :). Really appreciate it.
@kuldipjulasana2444 жыл бұрын
Great tutorial, clears all doubts.
@IAmTimCorey4 жыл бұрын
Glad it was helpful!
@alexisedsonmransantoso64604 жыл бұрын
Hi, first thanks for sharing your knowledge. It is a great job. I was wondering if Log4net library could be implemented within Monovelopment environment. Thanks for your answers.
@IAmTimCorey4 жыл бұрын
I believe it can, although I have not done it personally.
@alexisedsonmransantoso64604 жыл бұрын
@@IAmTimCorey thaks for your answer, I did the test and it worked in my Linux Centos. Log4net is a great library even for people who are making cross-platform develpments.
@joracardanovsky41929 жыл бұрын
Thank you a lot for this video and the time you spent on it. Is it possible for you to do the unit tests tutorial ? The way you explain is perfect. Thank you
@joracardanovsky41929 жыл бұрын
+Timothy Corey Yeah , i'm learning mocking, its quite difficult.
@joracardanovsky41929 жыл бұрын
+Timothy Corey And is it always necessary to make a common class that implements all kinds of logging? Like Elmah , Nlog . I mean in medium/big projects.
@joracardanovsky41929 жыл бұрын
+Timothy Corey Thank you a lot for your answers ! Looking forward to see your future tutorials
@joracardanovsky41929 жыл бұрын
+Timothy Corey And the last question )) How can i get on your mailing list?
@CoderzF13 жыл бұрын
Cool, I just found out that you are a fellow member of CodeProject like me
@IAmTimCorey3 жыл бұрын
Yep
@syedabbas98279 жыл бұрын
Good video to learn log4Net very well presented.
@somnath.sonawne9 жыл бұрын
Thanks for such a detailed video session.
@ThrashAbaddon8 жыл бұрын
This video is great. Timothy, thank you so much for sharing it. :)
@anandstephen28753 жыл бұрын
Nice work, Tim. Quick question: how does this work for Class Library Project
@IAmTimCorey3 жыл бұрын
It works just fine. However, you will need a user interface project to "power" the logger, since a class library cannot run on its own.
@anandstephen28753 жыл бұрын
@@IAmTimCorey ok so I have an application (which I cannot modify) that uses the class library I am creating; how do I still use log4net; any examples? thank you for your response!
@anatoly-k8 жыл бұрын
Thanks, it's brilliant. I have watched about half of this video and have no time to complite it in nearest time. Coud you tell me is there async calls described?
@matifnawaz7 жыл бұрын
Great tutorial. Many thanks! It would be a great favor to our eyes if you used a bigger font size. Even without that it's awsome. Thanks again.
@IAmTimCorey7 жыл бұрын
Yep, all of the videos after that video have had larger fonts all around. I'm glad you enjoyed the video.
@DS-tc7uu8 жыл бұрын
Thank you very much. Very helpful for a beginner!
@VinnyDrysdale8 жыл бұрын
Thanks for this video, but the text on the screen needs to be bigger.
@SaveTheHedgehog7 жыл бұрын
@iamtimcorey: tip: could you please make the fontsize a little bigger? Makes it a much better read.
@IAmTimCorey7 жыл бұрын
Yep, that's an older video, and while I can't go back and make the font size bigger, the newer videos all feature a much more readable font size.
@kaesuna18 жыл бұрын
Explained very clear to me, Much appreciate;
@asmitanikam48387 жыл бұрын
Hi...Completely worth watching. Can you do a video tutorial on ExceptionFilterAttribute as well. Would be of great help. Thanks !!
@DannTeBg8 жыл бұрын
its like log4net strived to make it as complicated as possible...
@OmarAzeriah8 жыл бұрын
Thanks for this very useful video, I use NLog framework but not anymore, they are very similaire but log4net is more mature, Excuse my english but I wanna say another thanks from Morocco, Casablanca :) I read your article before in codeproject but this video is more useful.
@20102010az5 жыл бұрын
Hey @IAmTimCorey, As of now, would you still recommend Log4net over NLog? And if so, what would be the main reason? Thanks!
@IAmTimCorey5 жыл бұрын
It depends on the situation. You choose the one that you feel most comfortable with and that has the features you are looking for. Log4net has a lot of appenders. You might find that NLog doesn't write to something you want. Or you may not. I am not an advocate of saying one option is the "best". I usually recommend one for most situations but I want people to know that their situation might be different than the one I demo.
@anyoneis7 жыл бұрын
Wow! Well worth the time. Nice work!
@koushaljoshi6813 жыл бұрын
Thank you IAMTimCorey.
@IAmTimCorey3 жыл бұрын
You are welcome.
@gilesrpa4 жыл бұрын
Once again great tutorial, easy to follow in step by step examples. One exception, adding customs fields, works, but I am having difficulty getting them to work with the AdoNetAdapter. Don't get me wrong, it is working, I am just not getting the string as seen by the ConsoleAdapter. It displays correctly, but the AdoNetAdapter is showing more of an object representation. Could you add something about that then this would be 5 stars plus. Thanks
@gilesrpa4 жыл бұрын
As it happens, I found my issue. when using the %property{newfield} parameter make sure you use the curly braces, I had normal parenthesis when causes it to represent the object structure. Curly braces just shows that property.
@IAmTimCorey4 жыл бұрын
Yep, that makes sense. Glad you figured it out.
@brendan22405 жыл бұрын
Wow, thank you so much. This is an amazing tutorial.. You are an awesome teacher - Subscribed.
@IAmTimCorey5 жыл бұрын
You are most welcome. Thanks for watching.
@manjerekarrao4 жыл бұрын
can i use the log4net classes instead of the config file. also i need to store the username in the logs when the app runs in the cloud
@IAmTimCorey4 жыл бұрын
You can use the class but then it is harder to change at runtime. As for getting the username, check out the link in the description to my written article. It has a section about capturing that information.
@abhisheklogishetty9 жыл бұрын
Hey Tim, Thanks for the video. It is very helpful. I want to create a class library with would contain the log4net and all the configuration settings. I would like to add reference to this class library from any of the existing/new applications. I would like to use ADONETAppender, but due to different environments we have like Dev, Test and Prod I would like to log the info into different backend systems we have. Do you have any ideas or suggestion on how to accomplish this?
@alexisedsonmransantoso64604 жыл бұрын
Very good tutorial, I wanted to know how can i change the log name at runtime, example: I want to run many process of my application console and get a different name of logs at runtime everyone. Thanks in advance for ur answer.
@IAmTimCorey4 жыл бұрын
Well, you store the log name in the config file so you could edit that name each time at runtime.
@surajverma25425 жыл бұрын
Hi Sir, Tutorial was exceptionally superb and well explained. Is there any way that we can get an ID in case of AdoNetAppender, so that we can pass exception id to user ??
@IAmTimCorey5 жыл бұрын
I'm not sure what you are looking to do. You don't get information out of a logging program into C#. Information goes the other way. C# already knows about the exception.
@Bonezz0248 жыл бұрын
Hi Timothy Corey, I am separating out my config files with external references. With regards to the connectionString file, is there a way to reference a specific connection string within another file from the ADONet Appender?
@Bonezz0248 жыл бұрын
Hey Timothy, I actually figured it out and thought I'd share. I was using an earlier version of the .dll Once I used - 1.2.15.0, I was able to use the property in my log4net.config
@BilgeORAKLIBEL9 жыл бұрын
Thanks for this great explanation. I had no idea about log4net before this video. Just I have a question. Maybe I missed maybe it is stupid question. But I wonder, Is there any way to log "login or logout" processes with log4net. I think I can use adonetAdapter with different sp and table but I have to use filter (just like INFO). again but after I want to log "logout" logs to different table and then I think, thinks are getting messy. Can you give me a suggestion or small explanation. Thanks again.
@BilgeORAKLIBEL9 жыл бұрын
+Timothy Corey Thanks for quick answer !
@falcon33307 жыл бұрын
Excellent tutorial Tim , Deserve to Watch with No wasting Time :D What is the extension for intellisense you used ?! it's a greet one
@IAmTimCorey7 жыл бұрын
I believe I used the Bing Code Snippets extension, which I believe is no longer supported. Anymore I usually just use the standard Visual Studio intellisense so I don't have that installed anymore. I did find a link to it. It says it works in VS2013 only but I'm not sure if that means nothing lower or only 2013. Here is the link: marketplace.visualstudio.com/items?itemName=BingDevCenter.BingCodeSnippets
@ASHOK_1623 жыл бұрын
Hello Mentor: 21:20 line 13 if we create in static constructor what will it do and what is the difference? Could you please Explain me.
@krazyito8 жыл бұрын
Maybe I haven't gone through the video enough yet, but at 41:45 when you copy and paste the layout for the 3rd time, does XML not have a concept of variables like code? where I can just do that part one time across that specific XML document and just call the variable?
@krazyito8 жыл бұрын
+Timothy Corey Right, I didn't think of it like that. Makes sense. Thanks!
@viktorpavlovych8 жыл бұрын
This is just awesome video - thank you so much for making it! It saved huge amount of time for me
@viktorpavlovych8 жыл бұрын
Thank you again! Really useful video
@emilychong40102 жыл бұрын
Thanks for this informative video. It helps a lot!