The next generation of the Teknik Services. Written in ASP.NET. Fork for blog tags.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Logging.cs 577B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Teknik.Logging
  7. {
  8. public static class Logging
  9. {
  10. private static Logger m_Logger { get; set; }
  11. public static Logger Logger
  12. {
  13. get
  14. {
  15. if (m_Logger == null)
  16. {
  17. Create();
  18. }
  19. return m_Logger;
  20. }
  21. }
  22. public static void Create()
  23. {
  24. m_Logger = new Logger();
  25. }
  26. }
  27. }