{"id":18074909,"url":"https://github.com/ezequieljuliano/logging4delphi","last_synced_at":"2026-01-20T14:04:00.125Z","repository":{"id":16702593,"uuid":"19459313","full_name":"ezequieljuliano/Logging4Delphi","owner":"ezequieljuliano","description":"API that facilitates the generation of logs in applications developed in Delphi","archived":false,"fork":false,"pushed_at":"2016-11-02T22:14:18.000Z","size":202,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T18:53:10.471Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Pascal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ezequieljuliano.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-05T14:48:07.000Z","updated_at":"2023-05-28T15:25:44.000Z","dependencies_parsed_at":"2022-07-26T08:48:04.423Z","dependency_job_id":null,"html_url":"https://github.com/ezequieljuliano/Logging4Delphi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ezequieljuliano/Logging4Delphi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezequieljuliano%2FLogging4Delphi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezequieljuliano%2FLogging4Delphi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezequieljuliano%2FLogging4Delphi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezequieljuliano%2FLogging4Delphi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ezequieljuliano","download_url":"https://codeload.github.com/ezequieljuliano/Logging4Delphi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezequieljuliano%2FLogging4Delphi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28604712,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T12:01:53.233Z","status":"ssl_error","status_checked_at":"2026-01-20T12:01:46.545Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-31T10:23:49.370Z","updated_at":"2026-01-20T14:04:00.105Z","avatar_url":"https://github.com/ezequieljuliano.png","language":"Pascal","funding_links":[],"categories":[],"sub_categories":[],"readme":"Logging For Delphi\n==============\n\nThe Logging4Delphi is an API that facilitates the generation of logs in applications developed in Delphi. With this library you can configure the task of logging in an easy and simple way. Moreover, it enables the use of the framework Log4D that has a lot of classes and methods for generating logs.\n\nDrivers Adapters\n=================\n\nThe Logging4Delphi is available for the following data access drivers:\n\n- Logging with standard adapter;\n- Logging with Log4D adapter;\n\nExternal Dependencies\n=====================\n\nThe Logging4Delphi makes use of some external dependencies. Therefore these dependences are included in the project within the \"dependencies\" folder. If you use the library parser you should add to the Path Log4D.\n\nUsing Logging4Delphi\n====================\n\nThe Logging4Delphi requires Delphi 2010 or greater and to use this API will is very simple, you simply add the Search Path of your IDE or your project the following directories:\n\n- Logging4Delphi\\src\n- Logging4Delphi\\dependencies\\Log4D\n\nExamples\n===========\n\tuses\n\t  Logging4D,\n\t  Logging4D.Impl,\n\t  Logging4D.Driver.Standard;\n\n    procedure LoggingWithStandardAdapter;\n    var\n      logging: ILogging;\n      appender: TLoggerAppender;\n      fileName: string;\n\tbegin\n\t  inherited;\n\t  fileName := ExtractFilePath(ParamStr(0)) + 'Log.txt';\n\t\n\t  appender := procedure(msg: string)\n\t    var\n\t      strList: TStringList;\n\t    begin\n\t      strList := TStringList.Create;\n\t      try\n\t        if FileExists(fileName) then\n\t          DeleteFile(fileName);\n\t\n\t        strList.Add(msg);\n\t\n\t        strList.SaveToFile(fileName);\n\t      finally\n\t        strList.Free;\n\t      end;\n\t    end;\n\t\n\t  logging := TStandardLogging.Create(appender);\n\n       //Using Logger\n       logging.Fatal(\n      \tTLogger.New\n      \t  .Keywords(['REST'])\n      \t  .Owner('AppOne')\n          .Message('Fatal REST Request Error')\n          .Marker('Delphi')\n        );\n\n       //Using String Message\n       logging.Fatal('Fatal REST Request Error');\n\tend;\n\n    procedure LoggingWithLog4DAdapter;\n    var\n       logging: ILogging;\n    begin\n       logging := TLog4DLogging.Create('Log4D', fileName);\n       \n      //Using Logger\n       logging.Fatal(\n      \tTLogger.New\n      \t  .Keywords(['REST'])\n      \t  .Owner('AppOne')\n          .Message('Fatal REST Request Error')\n          .Marker('Delphi')\n        );\n\n       //Using String Message\n       logging.Fatal('Fatal REST Request Error');\n    end;\n    \n**Analyze the unit tests they will assist you.**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezequieljuliano%2Flogging4delphi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fezequieljuliano%2Flogging4delphi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezequieljuliano%2Flogging4delphi/lists"}