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

Library needs to support a logger system #6

Open
trepidity opened this issue Feb 18, 2014 · 5 comments
Open

Library needs to support a logger system #6

trepidity opened this issue Feb 18, 2014 · 5 comments
Assignees

Comments

@trepidity
Copy link
Member

No description provided.

@Dynalon
Copy link
Member

Dynalon commented Feb 18, 2014

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.

@j-4
Copy link
Member

j-4 commented Feb 18, 2014

love your thoughts!

@trepidity
Copy link
Member Author

not complicated at all! LOL

@trepidity
Copy link
Member Author

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 

-- 
Jared

From: Timo Dörr [email protected]
Reply: tomboy-notes/tomboy-library [email protected]
Date: February 18, 2014 at 3:47:48 PM
To: tomboy-notes/tomboy-library [email protected]
Cc: Jared Jennings [email protected]
Subject:  Re: [tomboy-library] Library needs to support a logger system (#6)

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.


Reply to this email directly or view it on GitHub.

@Dynalon Dynalon self-assigned this Feb 19, 2014
@Dynalon
Copy link
Member

Dynalon commented Feb 19, 2014

It not that complicated. I have come up with sth in db2b87d

The more tricky part is registering the logger implementation.

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

No branches or pull requests

3 participants