SPULSRetriever API

Frequent Contributor

Hi there,


We could use the SPULSRetriever API to extract the ULS logs. like the following sample: but if we want to extract all logs by using Machine Name, it is ok ?? we need to use SPULSRetriever.GetMachinesFromScopes method or others?? If we could use SPULSRetriever.GetMachinesFromScopes method, anyone have sample code for it??


another question is : is it also possible to use the following column (Time, Server, Process, Thread, Product, Category, etc... ) as a parameters:




var ulsLogEntries = new SPULSRetriever(
300, 1000, DateTime.Now.AddMinutes(-180)).GetULSEntries(new Guid("c112209f-4b3a-207a-ed3f-215b21e79954"));

0 Replies