I'm using TextWriterTraceListener to log error messages to a text file.The TraceOutputFile has been mentioned in the web.config file as "trace.log.txt". The error messages are getting logged to the trace.log.txt. But at times I notice that some files are getting generated randomly under root folder with the exception details instead of logging to the trace.log.txt.
This is not happening in any particular page and hence I am unable to detect the reason as to why these files are getting generated.Ex:14dbc20a-9eb8-4fec-b6bd-54400db2ceatrace.log.txt .
Can u suggest me any circumstances when this might happen?
if you are familiar with ETW tracing, you could register EventProviderTraceListener instead of TextWriterTraceListener. You could details how to do that here.
I saw something similar when I had two threads trying to write to the log file at the same time whilst using the Enterprise Library logging classes.
Related
I am writing a simple Winforms app to generate 44 separate letters from a MS Word template. I get data to each letter from a local SQL Server database. While running the generate letters method I get the error shown here randomly. I am using Microsoft.Office.Interop.Word to do this:
The last time you opened x.docx, it caused a serious error. Do you still want to open it?
When I click No the program exits and when clicked Yes it continues. I manually re-enabled the file in Word options - Add-ins, and I have read solutions about registry editing and questions like this.
Why does this happen, and how can I fix this issue?
I would like to find the reason for a bug with an application and the Google Drive on Mac. With FSMonitor, I see that drive writes many logs in a structured_log_* file at ~/Library/Application Support/Google/DriveFS/Logs/ when I have the issue. But when I open the file it's not really readable in editor and toolbox.googleapps.com/apps/loggershark need drive_fs*.txt file and it does not contain any related log.
I see that structured_log_* are logs related to the file I open fichier test dsi2, but it is not readable.
How can I decode and read the file ?
Did you ever find an answer?
I'm looking to view the structured_log_* logs to see if it contains information on files uploaded and removed from a google drive account. Basically for auditing proposes...
But unfortunately, I can't make anything out. I have passed it through strings and sorted and it looks like the file names are contained within these logs and possibly the hashes of the files.
It would be nice to be able to decode the log properly to see whats the activity on in the log.
Thanks
I am trying to use Blueimp jQuery File Upload and it works great with small files. If try to upload anything greater than 50mb it fails and I get an error 'Empty file upload result'.
I have seen lots of responses to questions from people getting the same error but they seem to get it despite the file uploading correctly or the code corrections suggested don't seem to apply to the code that is now supplied with the plugin.
The FAQ suggests that there is a server side restriction on file size but I have asked my host to increase it to 1GB and they have confirmed they have done this. I do not have permission to overwrite the php.ini as suggested in the FAQ, I just get a server error.
Has anyone else had this problem and if so how was it resolved?
I am using PHP.
I'm trying to create & save a new form using Oracle Form builder however, I get the error FRM-10044: Cannot create file.
The same thing happens when I open and save an existing form (.fmb)
I've check the folder permissions where the form is being save, it has read write access.
I've tried saving it into a differ folder and also tried creating a new folder but it still throws the same error.
I'm able to create and save a word, excel document in the new or existing folders (as mentioned-above) without any issues.
I suspect it could be something to do with the Windows Registry or System Configuration settings because I had recently shutdown/disabled so of the services in the System Configuration (using
msconfig.exe). Unfortunately, I don't remember all the options that were modified.
I've gone through numerous discussion forums, but still no luck.
Any help is appreciated.
Thanks in Advance
I've experienced the same thing. But in my case, i compiled the form on server side. The error appeared because it was remote-controlled by more than 1 person. One of the remote session was possibly locking the file creation. So I logged off the other session and try to use 1 session only when compiling the form. This happens sometimes when we're using an OS with multiuser and multisession capability.
I am using CocoaLumberjack for my logging as it seems a very versatile logging framework.
In my application, I need to log to a file, and have the contents of that file displayed in the app itself: this is for diagnostics purposes for the user of the app (mainly so they can see how much the app is accessing their network, which I log to file).
There is the DDFileLogger and DDLogFileManager classes. I can see how I can use the DDLogFileManager class to access a file once it's wrapped, but what I want to do is display the contents of the file in a UITextView - so that it shows the current contents.. not just when it's wrapped.
Either way, I can't see how to access the log file within the app itself - can anyone shed some light on how to do this please?
thanks!
See my answer here:
https://stackoverflow.com/a/11544657/620577
And these characters are just to reach the 30 minimum.