Skip to content

VencejoSoftware/ooLog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License Build Status

ooLog - Object pascal logger library

Library to use a logger based in dynamic template definitions

Text file log example

var
  TemplateFile, InfoTemplate: ITemplateLog;
  Log: ILog;
  LogActor: ILogActor;
begin
  TemplateFile := TTemplateLog.New('{AppPath}demo_{Month}{Year}.log', TInsensitiveTextMatch.New);
  InfoTemplate := TTemplateLog.New('{IP}:{PC}-{User}-{App}[{LogLevel}]>>{DateTime} {TEXT}', TInsensitiveTextMatch.New);
  Log := TTextFileLog.New(TemplateFile, InfoTemplate);
  LogActor := TLogActor.Create(Log);
  LogActor.LogDebug('Something');
  LogActor.LogErrorText('Fail!');
end;

Documentation

If not exists folder "code-documentation" then run the batch "build_doc". The main entry is ./doc/index.html

Demo

Before all, run the batch "build_demo" to build proyect. Then go to the folder "demo\build\release" and run the executable.

Dependencies

Built With

Contribute

This are an open-source project, and they need your help to go on growing and improving. You can even fork the project on GitHub, maintain your own version and send us pull requests periodically to merge your work.

Authors

  • Alejandro Polti (Vencejo Software team lead) - Initial work