Hans Muster's Library tagged → View Popular
Grigori Melnik: Thoughts on Agile Software Engineering and Beyond : Just Released – Hands-on Labs for Enterprise Library 4.1 and Unity 1.2
This release includes a refresh of the labs for the following blocks:
- Caching Application Block
- Cryptography Application Block
- Data Access Application Block
- Exception Handling Application Block
- Logging Application Block
- Security Application Block
Writing to the SharePoint Unified Logging Service – Windows Live
Writing to the SharePoint Unified Logging Service
SharePoint uses a logging service that makes entries in the log files located at Program Files\Common Files\Microsoft Shared\web server extensions\12\LOGS. Out-of-the-box, SharePoint logs almost everything to these files, and I have seen them get quite large. Therefore, you should "throttle" the log writing, which can be done in the "Diagnostic Logging" section of the Central Administration site.
Once you discover the log files, you'll want to be able to write to them from your own features. This is a pretty easy thing to do, because the SharePoint SDK has a complete sample with code you can reuse. I use this code regularly in my features, so I have packaged it into a class that you can download here. Simply add the class to your project and then you can write to the logs using something like the following code.
TraceProvider.RegisterTraceProvider();
TraceProvider.WriteTrace(TraceProvider.TagFromString("XXXX (must be 4 letter tag)"), TraceProvider.StringToSeverity("Exception or Information"), Guid.NewGuid(), "Method Name", "Assembly Name", "Project Name", "Message");
TraceProvider.UnregisterTraceProvider();
Once you start writing to the log files, you'll discover that there is no easy way to view them. SharePoint does not have a log viewer built into the Central Administration web site. I've written an additional feature for viewing logs that you can download from my CodePlex project.
SharePoint Reports, SharePoint Usage Report - CardioLog
CardioLog Lite for SharePoint 2007 is a FREE web analytics solution for SharePoint 2007. It is delivered with a set of basic SharePoint 2007 usage reports, with optional SharePoint report bundles.
CardioLog Lite for SharePoint 2007
Screen shots
Specially built for authenticated environments, CardioLog Lite for SharePoint 2007 provides enhanced visitor segmentation - which is available through seamless integration with the organization's Active Directory.
CardioLog Lite for SharePoint 2007 includes an adaptors for SharePoint 2007 - which uses an advanced JavaScript tracking agent to monitor visitor actions such as item additions and deletions, document viewing, search results clicks and other Web 2.0 actions. In addition, this adaptor identifies the structure of the SharePoint 2007 portal and enables easy reporting for specific content areas.
CardioLog Lite's client UI is a complete HTML solution - enabling users to view reports in many ways. Reports can be easily integrated into portal pages by exporting them to web parts, or launched directly from the portal.
Apache log4net - Apache log4net: Home
log4net is a tool to help the programmer output log statements to a variety of output targets. log4net is a port of the excellent log4j framework to the .NET runtime. We have kept the framework similar in spirit to the original log4j while taking advantage of new features in the .NET runtime. For more information on log4net see the features document.
log4net is part of the Apache Logging Services project. The Logging Services project is intended to provide cross-language logging services for purposes of application debugging and auditing.
Selected Tags
Related Tags
Sponsored Links
Top Contributors
Groups interested in logging
Diigo is about better ways to research, share and collaborate on information. Learn more »
Join Diigo
