Giter Site home page Giter Site logo

Comments (18)

jednano avatar jednano commented on July 30, 2024

How do we even dump the log?

from metrolog.

mbrit avatar mbrit commented on July 30, 2024

Jed - I've dropped you an email. Post a notification here if you didn't get it/still need help.

from metrolog.

jednano avatar jednano commented on July 30, 2024

Yes, I got your email. Thank you! I'll be following your instructions tonight and see what roadblocks I may hit.

from metrolog.

mbrit avatar mbrit commented on July 30, 2024

I'm not sure what you mean? What are you trying to do?

On 12 Sep 2012, at 02:38, Jed Hunsaker [email protected] wrote:

How do we even dump the log?


Reply to this email directly or view it on GitHub.

from metrolog.

jednano avatar jednano commented on July 30, 2024

I'm just doing very basic, simple Info logging mostly, with a couple of Fatal ones. What I don't understand is how to get access to that information on someone else's machine. Like, if someone's camera fails to load, for example, on their desktop or tablet device, how do I see that error log? I must send it over the network somehow, but at what point? In the App.xaml.cs? Which event? That's where I'm confused.

from metrolog.

clairernovotny avatar clairernovotny commented on July 30, 2024

Hmm....I think that there's room for a command that could be bound to a button in the app bar that would gather the log file and offer it up to the share contracts for email.

I think it could be a static property like MetroLogCommands.ShareLogsCommand

In XAML, it'd be bound to an appbar button with Button={x:Static MetroLogCommands.SharelogsCommand}

from metrolog.

jednano avatar jednano commented on July 30, 2024

Oh, so you're saying the user would have to offer up the log? I was thinking it could be done transparently, but perhaps that violates the terms of use.

I don't know where such an app bar button would belong. Perhaps we need a separate help page with a button like this on it.

from metrolog.

mbrit avatar mbrit commented on July 30, 2024

That sounds like a really great idea. More than happy to do that.

I'll add a case.

On 12 Sep 2012, at 14:06, Oren Novotny [email protected] wrote:

Hmm....I think that there's room for a command that could be bound to a button in the app bar that would gather the log file and offer it up to the share contracts for email.

I think it could be a static property like MetroLogCommands.ShareLogsCommand

In XAML, it'd be bound to an appbar button with Button={x:Static MetroLogCommands.SharelogsCommand}


Reply to this email directly or view it on GitHub.

from metrolog.

mbrit avatar mbrit commented on July 30, 2024

There is one problem with this - we can't actually put the logs anywhere on the device other than where they are going, nor can we start the email app to send them.

What I'm wondering about is an ASP.NET site that was included with the project that would receive streamed log information on crash.

On 12 Sep 2012, at 14:08, Jed Hunsaker [email protected] wrote:

Oh, so you're saying the user would have to offer up the log? I was thinking it could be done transparently, but perhaps that violates the terms of use.

I don't know where such an app bar button would belong. Perhaps we need a separate help page with a button like this on it.


Reply to this email directly or view it on GitHub.

from metrolog.

jednano avatar jednano commented on July 30, 2024

Yeah. I was thinking something along the same lines. I really don't see how else to do it. Especially for WinRT projects that don't even have a site or web services. It would be extremely inconvenient for them to setup such a thing. I think that's why companies like http://www.mtiks.com/ exist, for hosting such services.

from metrolog.

clairernovotny avatar clairernovotny commented on July 30, 2024

There's nothing stopping anyone from writing a custom Target that sends all data to a web service. That'd be application-specific though.

That's one way of getting "live" log data.

from metrolog.

jednano avatar jednano commented on July 30, 2024

The question still remains though, at what point would you send the log to such a service? That's really the root of what I'm trying to figure out here.

from metrolog.

mbrit avatar mbrit commented on July 30, 2024

What I think I'll do is a target that posts JSON up, passing package information up in the headers.

On 12 Sep 2012, at 14:35, Oren Novotny [email protected] wrote:

There's nothing stopping anyone from writing a custom Target that sends all data to a web service. That'd be application-specific though.

That's one way of getting "live" log data.


Reply to this email directly or view it on GitHub.

from metrolog.

mbrit avatar mbrit commented on July 30, 2024

If it's a retail app that's just out there on the market, normally you'd do it on error or fatal.

If it's internal use, you may choose to have stronger instrumentation back to base.

On 12 Sep 2012, at 14:36, Jed Hunsaker [email protected] wrote:

The question still remains though, at what point would you send the log to such a service? That's really the root of what I'm trying to figure out here.


Reply to this email directly or view it on GitHub.

from metrolog.

jednano avatar jednano commented on July 30, 2024

Oh, you know what? I was totally going about it the wrong way, like I was supposed to send the log on the Application_OnError event, but actually I think what you're saying is that the logger should fire off an event if it ever gets an Error or Fatal. That makes WAY more sense. So I need to know how to subscribe to that event then, if it even exists.

BTW, I just cloned the MetroLog solution and updated my references and code. It was a pretty easy update. Still looking for a way to subscribe to some kind of push event though.

from metrolog.

jednano avatar jednano commented on July 30, 2024

Oh. I need to look at the recent commit more in-depth tonight. Until then, I think this issue is resolved. The Win8 sample project really helped. Thanks!

from metrolog.

mbrit avatar mbrit commented on July 30, 2024

The only immediate problem is that fatal "say goodbye to your app!" events
struggle to record the final log entry before death.

We're working on that...

Sent from my iPhone

On 12 Sep 2012, at 17:51, Jed Hunsaker [email protected] wrote:

Oh, you know what? I was totally going about it the wrong way, like I was
supposed to send the log on the Application_OnError event, but actually I
think what you're saying is that the logger should fire off an event if it
ever gets an Error or Fatal. That makes WAY more sense. So I need to know
how to subscribe to that event then, if it even exists.

BTW, I just cloned the MetroLog solution and updated my references and
code. It was a pretty easy update. Still looking for a way to subscribe to
some kind of push event though.


Reply to this email directly or view it on
GitHubhttps://github.com//issues/5#issuecomment-8512940.

from metrolog.

jednano avatar jednano commented on July 30, 2024

Yes. I suppose you'd have to "try" to send whatever log info you can, but at the very least just save it locally. Then, I suppose the App's OnLaunched event would look to see if anything is in queue to be sent to a remote server and handle it at that point.

It's not ideal, but it's probably the best we can do with what we have, right?

from metrolog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.