bmw0128
bmw0128

Reputation: 13698

SharePoint writing to log file

Should this be as easy as Trace.WriteInformation() in a C# file that is in a class library in the GAC?

Upvotes: 0

Views: 1066

Answers (2)

Mitch Wheat
Mitch Wheat

Reputation: 300549

Related to your question:

SharePoint's Unified Logging Service (ULS) log files are not that easy to read. There is a browser-based viewer available over at the CodePlex Features project. This adds a new link to the Central Administration Operations page that lets you pick & filter the log files.

Upvotes: 1

bmw0128
bmw0128

Reputation: 13698

use:

   Microsoft.Office.Server.Diagnostics.PortalLog.LogString("*** bmw 1 ***");

Upvotes: 0

Related Questions