By Default ULS trace logs are logged to text file in 14 Hive\LOGS. In sharepoint 2010 we have a provision to move these logs to WSS_Logging database. Follow these steps to get ULS tracelogs to WSS_Logging Database.
-
Open the SharePoint Central Administration site
-
Navigate to the Monitoring section
-
Select Review Job Definitions
-
Click on the job with the name Diagnostic Data Provider: Trace Log
-
Click on the Enable button to enable it
-
Click on Run Now, to start it immediately