Skip to content

cmvandrevala/logging_blog_post

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Logging Blog Post

This is a set of Swift playgrounds that accompany my logging blog post. You should be able to copy the code right into an Xcode playground and see the results in the console. Feel free to experiment with these code snippets at your leisure!

Happy logging!

Naive Logger Implementation

  1. Print Statements
  2. Logger Class
  3. Multiple Log Statements
  4. Inevitable Cluttered Code

Observer Pattern

  1. Observer Pattern with Unchanging Messages
  2. Observer Pattern with Dynamic Messages

Chain of Responsibility Pattern

  1. Chain Pattern with Unchanging Messages
  2. Chain Pattern with Dynamic Messages

About

A set of Swift playgrounds that accompany a blog post.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published