#1 Re: mORMot 1 » Is there a TSynLog tutorial or sample code ? » 2013-03-05 22:01:01

Thank you very much for your reply.

May I suggest to include one important piece of information in the sample code and documentation that I only found in the source code SynCommons.pas:

  // - you should create a sub class per kind of log file.

It took me a while to get it working, until I read that.

It could be shown in the sample code the Family.Level being set.
  Family.Level := [sllException,sllExceptionOS, sllInfo, sllDebug, sllTrace,
                   sllWarning, sllError, sllEnter, sllLeave, sllLastError,
                   sllLastError, sllMemory, sllStackTrace, sllFail];

Also it would be nice to inform (this is Delphi info, not framework, but it would be convenient to have the information there) how to get the .map file generated with some text like this:
"you must ensure the {D+} compiler directive is set, and the "Detailed Map File" option selected in the Project >Options>Linker page of the IDE"

Thanks again,
Mau.

#2 mORMot 1 » Is there a TSynLog tutorial or sample code ? » 2013-03-04 20:26:07

morto
Replies: 3

I was looking for a Delphi logging framework and found TSynLog.
However I could not find any documentation, tutorial or sample code.

I tried to search the forum and googled it but could not find anything remotely close to what I was looking for.

Could you please point me to some documentation or provide a 'get started' sample code ?

Thank you for your attention.

Board footer

Powered by FluxBB