July 2018
Beginner to intermediate
668 pages
16h 29m
English
In this recipe, I have also used the Log functions provided by the logging mechanism of DMVC. At its base, there is a particular configuration of the awesome framework seen in the previous chapter, LoggerPro. Just import the MVCFramework.Logger.pas and you are up and running to be able to log with several functions:
procedure Log(AMessage: string); overload;procedure LogD(AMessage: string); overload;procedure LogI(AMessage: string);procedure LogW(AMessage: string);procedure LogE(AMessage: string);
You have to choose the appropriate method based on the severity:
A single clarification: since we are in a Linux environment, the correct path for the logs must be /var/log.
Read now
Unlock full access