mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 07:45:54 +01:00
Add logging support
This commit is contained in:
parent
bf9d496375
commit
5b151feffa
@ -44,6 +44,7 @@ interface
|
||||
uses
|
||||
MVCFramework,
|
||||
MVCFramework.Commons,
|
||||
MVCFramework.Logger,
|
||||
System.Classes,
|
||||
Sempare.Template;
|
||||
|
||||
@ -91,7 +92,7 @@ begin
|
||||
except
|
||||
on e: Exception do
|
||||
begin
|
||||
writeln(e.Message); // not the most ideal way of doing things... we would want to use a logger
|
||||
Log.ErrorFmt('[%s] %s', [e.Classname, e.Message], LOGGERPRO_TAG);
|
||||
raise e;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user