ConsoleDestination.swift 742 B

1234567891011121314151617181920212223242526
  1. //
  2. // ConsoleDestination.swift
  3. // XCGLogger: https://github.com/DaveWoodCom/XCGLogger
  4. //
  5. // Created by Dave Wood on 2014-06-06.
  6. // Copyright © 2014 Dave Wood, Cerebral Gardens.
  7. // Some rights reserved: https://github.com/DaveWoodCom/XCGLogger/blob/master/LICENSE.txt
  8. //
  9. import Dispatch
  10. // MARK: - ConsoleDestination
  11. /// A standard destination that outputs log details to the console
  12. open class ConsoleDestination: BaseQueuedDestination {
  13. // MARK: - Overridden Methods
  14. /// Print the log to the console.
  15. ///
  16. /// - Parameters:
  17. /// - message: Formatted/processed message ready for output.
  18. ///
  19. /// - Returns: Nothing
  20. ///
  21. open override func write(message: String) {
  22. print(message)
  23. }
  24. }