Comments (18)
How do we even dump the log?
from metrolog.
Jed - I've dropped you an email. Post a notification here if you didn't get it/still need help.
from metrolog.
Yes, I got your email. Thank you! I'll be following your instructions tonight and see what roadblocks I may hit.
from metrolog.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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)
- no json data written
- Multiple FileStreamingTarget in DefaultConfiguration HOT 2
- GlobalCrashHandler doesn't give stack trace/location HOT 1
- MetroLog stops logging when a few exceptions occurred HOT 3
- Using a custom trace layout in StreamingFileTarget HOT 1
- Change StreamingFileTarget's file name HOT 1
- Logging in local time HOT 1
- Read the current log file in UWP HOT 2
- Many unhandled exceptions with WriteAsync when using logger in UWP app
- Code Cluthering, SRP, KISS, 10/100, ... Violation?
- Crash with Thai locale HOT 5
- Release build is failing with error saying missing implementation on type 'MetroLog.Targets.StreamingFileTarget' HOT 1
- How to flush BufferedTarget (and its descendants) when buffer size less than threshold? HOT 1
- The process cannot access the file because it is being used by another process. The file is in use. Please close the file before continuing. HOT 1
- Exception thrown: 'System.IO.FileLoadException' in System.Private.CoreLib.dll WinRT information: The file is in use. Please close the file before continuing.
- Messages not always formatted
- GetCompressedLogs- how to for xamarin.forms project? HOT 13
- MetroLog for .Net 6 and Maui
- GlobalCrashHandler does not pass exception to Layout
- no message written to file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metrolog.