#1 2016-11-04 06:15:50

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

[solved] Suggestion - TSynLogFamily.OnLog event

Hello Arnaud,

I'd suggest adding the abillity to assign an event handler to TSynLogFamily or TSynLog, something like OnLogEntry, which allows capturing each log entry, including the logText, the level, and "enter method" event, and so on.

My original purpose is sending the log entry to the UI while logging to file, but such a event obviously adds flexibility to the framework smile

Last edited by edwinsn (2016-11-04 13:35:15)


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#2 2016-11-04 12:05:01

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,549
Website

Re: [solved] Suggestion - TSynLogFamily.OnLog event

I use a Family.EchoRemoteStart for this purpose

Last edited by mpv (2016-11-04 12:07:16)

Offline

#3 2016-11-04 13:34:51

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Re: [solved] Suggestion - TSynLogFamily.OnLog event

@mpv,

That's great! I didn't realize that feature exists! So powerful the mORMot framework is!


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

Board footer

Powered by FluxBB