HeliumLogger
HeliumLogger copied to clipboard
feature: log swift queue name
In an app using multiple dispatch queues it may be worth logging current queue with every message.
Would you be willing to accept a PR if I consider adding this support? I am using HeliumLogger in multiple server side swift projects and would be willing to open a PR.
thanks for great and simple component...
Thanks for asking about this. Just curious how you plan to get the current queue? According to this thread, it doesn't seem like there's a good way to do this.
print(String(cString: __dispatch_queue_get_label(nil)))
from here: https://developer.apple.com/forums/thread/701313
Just to keep you updated. I have prototyped this including passing tests in my repo fork here: https://github.com/mman/HeliumLogger/commit/8f1e1ef74080fa5d00d7181dcf91b2aafc56d74b and it works great on macOS, but I was not able to make it compile under Linux. The hidden symbol __dispatch_queue_get_label does not exist under Linux. Still investigating.