Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add os and sys logging #2

Open
eonist opened this issue Mar 25, 2023 · 5 comments
Open

Add os and sys logging #2

eonist opened this issue Mar 25, 2023 · 5 comments

Comments

@eonist
Copy link
Member

eonist commented Mar 25, 2023

So that its easier to debug UITesting which doesn't print to console

@eonist
Copy link
Member Author

eonist commented Apr 7, 2023

// find this call in consol by searching for app name and set category to network
      let logger = os.Logger(subsystem: Bundle.main.bundleIdentifier!, category: "network")
      logger.log("url = \(.init("https://google.com/"))")

more info here: https://stevenpcurtis.medium.com/logging-in-swift-d9b59146ff00

@eonist
Copy link
Member Author

eonist commented Apr 7, 2023

@eonist
Copy link
Member Author

eonist commented Apr 7, 2023

@eonist
Copy link
Member Author

eonist commented Apr 7, 2023

@eonist
Copy link
Member Author

eonist commented Apr 7, 2023

Very detailed on os_log and logger: https://steipete.com/posts/logging-in-swift/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant