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

Support Apple Unified Logging #14

Closed
allenhumphreys opened this issue Nov 13, 2018 · 12 comments
Closed

Support Apple Unified Logging #14

allenhumphreys opened this issue Nov 13, 2018 · 12 comments

Comments

@allenhumphreys
Copy link

Do you want to request a feature or report a bug?
Feature

What is the current behavior?
Only supports NSLog on iOS

What is the motivation / use case for changing the behavior?
Support Unified Logging

@FinHorsley
Copy link

Currently does the iOS sink write to the Console, rather than actually writing to NSLog?

From what I can see here NSLogSink.cs L38 it is just simply writing out to Console.WriteLine()

@nberardi
Copy link

nberardi commented Sep 11, 2019 via email

@FinHorsley
Copy link

Great 🙂

@chucker
Copy link
Contributor

chucker commented Mar 8, 2020

They are one and the same. At least they were when the code was written.

Well, Console.WriteLine() will forward there, yes, but you can't specify log levels that way.

iOS (and other Apple platforms) generally supports this (for example, debug logging), but I couldn't find any facility in Xamarin to map those low-level functions. (Here's a thread about it.)

@allenhumphreys
Copy link
Author

Just wanted to clarify for posterity that Unified Logging on Apple platforms isn’t calling NSLog.

@chucker
Copy link
Contributor

chucker commented Jun 28, 2020

@allenhumphreys I made a sink that calls Apple’s APIs. If someone is interested, I’ll make the repo public.

@rwelz
Copy link

rwelz commented Oct 16, 2020

@chucker : Does the unified-logging sink works with .NET core ? And yes, please make it public.
kind regards,
rwelz

@chucker
Copy link
Contributor

chucker commented Nov 1, 2020

Does the unified-logging sink works with .NET core ?

I don't believe it's possible yet to target Xamarin stuff from .NET Core?

@nickrandolph
Copy link
Contributor

@allenhumphreys I made a sink that calls Apple’s APIs. If someone is interested, I’ll make the repo public.

@chucker I just came across this - would you be interested in contributing that sink into this repo so there's one place for all xamarin sinks

@nblumhardt
Copy link
Member

Given Xamarin has been EOL'd, and we're at two years since the last commit in this repo, it's probably best at this point to organize new mobile sinks around their respective APIs in new repositories.

I'm running through closing stale issues, and expecting we'll end up archiving this repo in the not-too-distant future, but if there's some anticipated way forward I'm unaware of please give me a shout :)

@nblumhardt
Copy link
Member

Continuing discussion in #32 (comment)

@chucker
Copy link
Contributor

chucker commented Jun 7, 2024

would you be interested in contributing that sink into this repo

I’ll have to port it to modern .NET some day.

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

7 participants