Thank you for taking a project level approach to introduce OSLog. That and its integration with the new Xcode make all the difference.
@holgerflick
Жыл бұрын
Didn't realize you could configure the filter like that. Also, a pretty great approach to extend the Logger class.
@StewartLynch
Жыл бұрын
Glad I could help!
@christianhaugen9462
4 ай бұрын
You are such a great teacher. I love your content. Thanks for being such an awesome guide with these programming concepts.
@StewartLynch
4 ай бұрын
Thank you so much
@sjk27
Жыл бұрын
Timely video, thanks Stewart! Do keep them coming, can’t wait to tune in every time. Best!
@StewartLynch
Жыл бұрын
Awesome, thank you!
@DavidKoontz
Жыл бұрын
Thanks - I’ve not explored the features of the console. I’ve started replacing my prints with logger!
@berkantdursun5572
Жыл бұрын
Thank you Stewart, I learned something new with OSLog.
@GaryLutchansky
Жыл бұрын
Sold! I'll be using it. Thank you for the perfect introduction to this capability.
@justinseal3803
Жыл бұрын
This is so helpful! What a great intro into better debugging and logging. Thank you!
@StewartLynch
Жыл бұрын
Glad it was helpful!
@alanwill
7 ай бұрын
Great video Stewart and I appreciate the extra detail and explanations compared to Apple's WWDC video. I guess it's the difference between an advanced vs a beginner audience :)
@mhfs61
Жыл бұрын
Very helpful, Stewart. Thank you.
@andrejkling3886
Жыл бұрын
Thank you Stewart….
@StewartLynch
Жыл бұрын
You are very welcome
@andresraigoza2082
Жыл бұрын
Thank you so much Stewart
@jcpazos65
Жыл бұрын
Thanks, great content as always
@30guarino
Жыл бұрын
Great video, had no idea about the OSLog ....too bad it couldn't be imported throughout the whole App instead of import OSLog each time
@dfrankcom
Жыл бұрын
Great video, as always! Moving all my prints to OSLog. Looking forward to your next video. Thanks for all you do!
@alexandrgrigoryev9383
Жыл бұрын
Thank you so much and please keep doing it. ❤ you are so good teacher 🧑🏫
@StewartLynch
Жыл бұрын
Thank you, I will
@anupdsouza
Жыл бұрын
This is so neat! Can't wait for all the logging macros in legacy projects to turn obsolete with OSLog. Btw, what Mac model & config do you have Stewart?
@StewartLynch
Жыл бұрын
I have two M3 devices. An M2 MB Air (24Gb 1TB storage) and an M2 Mac mini (32Gb, 2TB storage) .
@alexter6207
3 күн бұрын
Great stuff!
@StewartLynch
Күн бұрын
Glad you think so!
@cruiseqe2
Жыл бұрын
Yet another excellent video.
@StewartLynch
Жыл бұрын
Thanks
@KFrench1123
Жыл бұрын
Thanks, Stewart!
@crdave1988
Жыл бұрын
Thanks for the nice introduction. Would you please make a video for the privacy option in OSLog? Documents are not very clear about what is the difference between different options like private vs sensitive. 🙏
@StewartLynch
Жыл бұрын
Noted
@abdulwahabkhan4316
Жыл бұрын
Great video ... I think you can make secound part of this video how to extract logs from a device ...
@MDRogy
7 ай бұрын
great stuff. thank you
@StewartLynch
7 ай бұрын
My pleasure!
@yurii_chynchyk
11 ай бұрын
Great!
@pavunraj2449
7 ай бұрын
thank you, upload the video
@StewartLynch
7 ай бұрын
What do you mean?
@JumpingCow
Жыл бұрын
Very useful!
@ortezan4186
Жыл бұрын
Like always, Apple adds crucial functionality to its IDE years after every major player had it.
@StewartLynch
Жыл бұрын
Logging has always been there. I is just easier now.
@DavidKoontz
Жыл бұрын
Hey Stewart, I want to question the often repeated advice to make the Logger subsystem set to the static var subsystem = Bundle.main.bundleIdentifier! I feel this is redundant metadata. Look at the metadata Library info. Seems like the subsystem would be better used for most Apps set to some Developer important info. Like the label states a SUBsystem not the App. When one turns on all the metadata switches for logger it is obviously redundant.
@StewartLynch
Жыл бұрын
I agree. When I created that video, I was just following Apple’s written advice
@tareks39
Жыл бұрын
Why didn't you modify the custom logger you created earlier to take advantage of OSLog so you wouldn't have to go all the app to import OSLog, create a logger and modify the print statement?
@StewartLynch
Жыл бұрын
Would love to see your implementation
@santhoshVnair
Жыл бұрын
I thought, custom loggers will add performance overhead as compared to native loggers, since Swift compiler knows about native logger and when you turn logging level down in production environments it's as if the code is not there.
@tareks39
Жыл бұрын
@@santhoshVnair A custom logger is basically a wrapper around OSLog. It can also use 3rd party logging frameworks like Datadog under the hood so you can collect the logs remotely instead of having the user send them manually if they need help or face technical issues. Having a custom wrapper around OSLog helps you swap implementations easily; for example you could have using print statements inside the custom wrapper; OSLog comes out; you swap print for OSLog inside the wrapper and voila, you're done. You didn't need to touch your log statements across the app.
@samjoly3865
Жыл бұрын
@@tareks39 I appreciate the functionality of the wrapper; however, it seems to negate OSLog's capability to provide the initial log location. Is there a workaround or solution for this?
@tareks39
Жыл бұрын
@@samjoly3865 I’m a bit confused. How does the wrapper negate the functionality of OSLog? It’s merely a wrapper that still uses OSLog but it adds functionality and it hides the implementation from the rest of the app.
@victorriurean
Жыл бұрын
@user-jy5pu6bg5p
Жыл бұрын
I got stock since 2 days ; first ii download Xcode 15 beta 6 and it worked too slow and now I am back to Xcode 15 beta 5 which I was work before and was fine but now the simulator is so slow and It shows a white screen what should I do when the simulator shows a white screen :(
@30guarino
Жыл бұрын
try a different simulator and see if that white screen persists on it.
@anupdsouza
Жыл бұрын
You can also try to reset simulator defaults and see if the problem persists
Пікірлер: 53