This message slipped by me and got lost in my inbox. Sorry about that.
One thing that strikes me about your approach is that NSMutableDictionary isn't thread-safe. So one would need to add some type of locking mechanism within the logLevelForFileName code. This means you're changing the code of every log message from this:
- ivar fetch (is this even considered an operation?)
to this:
- objective-c method invocation
- lock
- dictionary lookup
- unlock
(or a dispatch_sync).
Furthermore, the above has to happen every time. Both for log statements that are above or below logging level threshold.
This will significantly slow down the speed of logging.
-Robbie Hanson
> --
> You received this message because you are subscribed to the Google Groups "CocoaLumberjack" group.
> To post to this group, send email to cocoalu...@googlegroups.com.
> To unsubscribe from this group, send email to cocoalumberja...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cocoalumberjack?hl=en.
>