-
Notifications
You must be signed in to change notification settings - Fork 1
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
Library needs to support a logger system #6
Comments
Agreed. As I am looking into PCL compatibility, I suggest we introduce a thin ILogger interface that has rudimentary logging function like .Debug(), .Notice(), .Warn() etc such that we can hook/register a logger depending on the plattform. For PCL, for example, there is not System.IO and hence no File.* and also no Console.WriteLine. A "ConsoleLogger" could then be added implementing that interface and registered from outside the PCL parts, and on Android we can use this aLogCat thingy that tomdroid uses. |
love your thoughts! |
not complicated at all! LOL |
I can’t believe there isn’t something we cannot already use..It would seem that this would be something Xaramin should have developed already. Maybe I’m too optimistic -- From: Timo Dörr [email protected] Agreed. As I am looking into PCL compatibility, I suggest we introduce a thin ILogger interface that has rudimentary logging function like .Debug(), .Notice(), .Warn() etc such that we can hook/register a logger depending on the plattform. For PCL, for example, there is not System.IO and hence no File.* and also no Console.WriteLine. A "ConsoleLogger" could then be added implementing that interface and registered from outside the PCL parts, and on Android we can use this aLogCat thingy that tomdroid uses. — |
It not that complicated. I have come up with sth in db2b87d The more tricky part is registering the logger implementation. |
No description provided.
The text was updated successfully, but these errors were encountered: