C#

C#,写log

对于写程序的log,我建议使用NLog.dll,简单,又好用,Function:

  • Log的Class

using NLog.Layouts;
using NLog.Targets;
using NLog;

 

  • 记得在你的bin目录下加个/logs文件夹,因为以上代码里面有写明在哪个位置产生log,当然,你也可以再Config里面配置。
  • 程序的使用

 

Pls call me CPP.
Posts created 150

42 thoughts on “C#,写log

  1. Cialis Es Viagra <a href=http://cial40mg.com/best-cialis-online.php>Best Cialis Online</a> Acheter Levitra Ligne Generic Viagra Levitra <a href=http://priligy-90mg.priliorder.com>Priligy 90mg</a> Forum Cialis Effetti Collaterali Purchasing Progesterone Website With Free Shipping <a href=http://viacheap.com>viagra</a> Viagra Billig Per Nachnahme Clomid Ovestin <a href=http://purchase-kamagra-usa.kamagpills.com>Purchase Kamagra Usa</a> Misoprostol Effets Viagra Et De Dapoxetine <a href=http://viagra-online-store.via100mg.com>Viagra Online Store</a> Amoxicillin Clavu 875

  2. jack newman domperidone weaning <a href=http://kisokika38.tumblr.com/#89950>purchase domperidone online without prescription</a> baby gaviscon over the counter

  3. can i take domperidone if pregnant <a href=http://kisokika38.tumblr.com/#24900>where can i get domperidone without a prescription</a> breastfeeding can lose weight

  4. do you need a prescription for domperidone in canada <a href=http://kisokika38.tumblr.com/#43426>can i buy domperidone online</a> how to look after an alpaca

  5. domperidone and ranitidine interaction <a href=http://kisokika38.tumblr.com/#45512>can you buy domperidone without a prescription</a> what is cushing's disease horses

发表评论

Related Posts

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top