#1 2012-04-06 10:20:56

lestat
Member
From: Italy
Registered: 2012-02-20
Posts: 11

TSynLog: getting last log entries

I'm building an administration interface for the http service and i want to show the log. But i don't want to read the log file, I would get the server send to the client the last n log rows. Is there a function to do this?

Thanks

Last edited by lestat (2012-04-06 10:44:59)

Offline

#2 2012-04-06 12:09:15

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,238
Website

Re: TSynLog: getting last log entries

No, there is no direct function for this.

What you can do is flush the log content to the file, then open the file (with read & write share flags) and retrieve the end of the file.

Offline

Board footer

Powered by FluxBB