Skip to content

Commit

Permalink
Horse 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciussanchez committed Mar 10, 2023
1 parent a2cae1e commit e38de1a
Show file tree
Hide file tree
Showing 6 changed files with 403 additions and 416 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ dist/
static/
**/Win32/
**/Win64/
**/backup/
**/lib/
**/Linux64/
**/__history/
**/__recovery/
src/*.~*
*.res
*.lps
*.exe
*.dll
*.bpl
Expand Down
30 changes: 30 additions & 0 deletions boss-lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"hash": "a8be6bf6281ffa4cdf03a079a8fc87ff",
"updated": "2023-03-09T23:52:02.5737056-03:00",
"installedModules": {
"github.com/dliocode/horse-utils-clientip": {
"name": "horse-utils-clientip",
"version": "0.0.8",
"hash": "83125fa6038e2377749e27e23b8f3aee",
"artifacts": {},
"failed": false,
"changed": false
},
"github.com/hashload/horse": {
"name": "horse",
"version": "3.1.0",
"hash": "fc3b8eefb46c1a3b387e86ca46a9faa1",
"artifacts": {},
"failed": false,
"changed": false
},
"github.com/hashload/horse-logger": {
"name": "horse-logger",
"version": "2.0.7",
"hash": "2ad42f03f1d4b940c24768b9b6b943cc",
"artifacts": {},
"failed": false,
"changed": false
}
}
}
10 changes: 5 additions & 5 deletions boss.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "horse-logger-provider-console",
"description": "Print log to console",
"version": "1.0.5",
"homepage": "https://github.com/HashLoad/horse-logger-provider-console",
"mainsrc": "./src/",
"description": "",
"version": "1.0.6",
"homepage": "",
"mainsrc": "./src",
"projects": [],
"dependencies": {
"github.com/hashload/horse-logger": "^2.0.5"
"github.com/hashload/horse-logger": "^2.0.7"
}
}
10 changes: 5 additions & 5 deletions samples/delphi/samples.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ uses
Horse.Logger.Provider.Console, // It's necessary to use the unit
System.SysUtils;

var
LLogFileConfig: THorseLoggerConsoleConfig;
//var
// LLogFileConfig: THorseLoggerConsoleConfig;

begin
LLogFileConfig := THorseLoggerConsoleConfig.New
.SetLogFormat('${request_clientip} [${time}] ${response_status}');
// LLogFileConfig := THorseLoggerConsoleConfig.New
// .SetLogFormat('${request_clientip} [${time}] ${response_status}');

// You can also specify the log format:
// THorseLoggerManager.RegisterProvider(THorseLoggerProviderConsole.New(LLogFileConfig));
Expand All @@ -26,7 +26,7 @@ begin
THorse.Use(THorseLoggerManager.HorseCallback);

THorse.Get('/ping',
procedure(Req: THorseRequest; Res: THorseResponse; Next: TProc)
procedure(Req: THorseRequest; Res: THorseResponse)
begin
Res.Send('pong');
end);
Expand Down
Loading

0 comments on commit e38de1a

Please sign in to comment.