If you want to read the log file, you'll have to contact Microsoft for a license.
What you want could be easily achieved using a trace, logging it's results. To a textfile or some other database. Google for "Sql Trace" and you should find some interesting results, even from CodeProject
Thanks for reply!
I have create App. and trace everything in SQL but I cannot trace SP and ... that will call from C#.
I mean when i call SP in C# it doesnt trace.
//را یکبار اجرا نمایید SP این trace ابتدا باید برای فعال کردن
declare @TraceId int
-- create the trace
exec sp_trace_create @TraceId output, 0, N'C:\Temp\OurDemoTrace'
-- set event and columns to trace
exec sp_trace_setevent @TraceId, 12, 1, 1
exec sp_trace_setevent @TraceId, 12, 6, 1
exec sp_trace_setevent @TraceId, 13, 1, 1
exec sp_trace_setevent @TraceId, 13, 6, 1
-- start the trace
exec sp_trace_setstatus @TraceId, 1
-- check status for our trace
select value from fn_trace_getinfo(@TraceId) where property in (2, 5)