ConsoleLogFactory.cs 522 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace SuperSocket.SocketBase.Logging
  6. {
  7. /// <summary>
  8. /// Console log factory
  9. /// </summary>
  10. public class ConsoleLogFactory : ILogFactory
  11. {
  12. /// <summary>
  13. /// Gets the log by name.
  14. /// </summary>
  15. /// <param name="name">The name.</param>
  16. /// <returns></returns>
  17. public ILog GetLog(string name)
  18. {
  19. return new ConsoleLog(name);
  20. }
  21. }
  22. }