Can anybody plz guide me how i can upload the error logs and print the same log file in sharepoint?I use C# language.
closed as not a real question by Alex Angas Jun 6 '11 at 7:14
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
To upload it: - Go to a document library, click the upload button, find the log file, and upload it
To print it: - You can go to the error log file, open it in notepad, then hit file - print
But I don't think that's what you're after... can you give us more details on what you're trying to do?
If you plan to upload log files to a SharePoint document library I would advise against that. These log files can be huge and there is no benefit (maybe I misunderstood your question) to upload these to SharePoint.
In my experience the best way to examine these is to use one of the open source ULS Log Viewers, I prefer SharePoint ULS Log Viewer but there are others like ULS Viewer and many other, just search for ULS Viewer. These do not have print option, but you could extend them if you need such a feature. (I really do not see the reason to print these unless you really have tons of paper you want to use).
If you are using SharePoint 2010 you can use PowerShell to retrieve, query and even print ULS logs.