Skip to content

Commit

Permalink
Ajustes no Provider.Console
Browse files Browse the repository at this point in the history
  • Loading branch information
dliocode committed Nov 16, 2022
1 parent 899eb6d commit 3b9b5a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Samples/Console/ProviderConsole.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ begin
Logger.AddProvider(
TProviderConsole.Create
.UseColorInConsole(True)
// .UseColorInConsoleByLogFormat(True) .UseColorInConsoleByLogFormat(False)
// .UseColorInConsoleByLogFormat(True)

// .ChangeColor(TLoggerLevel.Trace, TColor.Black, TColor.Magenta)
// .ChangeColor(TLoggerLevel.Debug, TColor.Black, TColor.Cyan)
Expand Down
2 changes: 1 addition & 1 deletion src/Providers/DataLogger.Provider.Console.pas
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ procedure TProviderConsole.Save(const ACache: TArray<TLoggerItem>);

while True do
try
if FUseColorInConsole then
if FUseColorInConsole and not FUseColorInConsoleByLogFormat then
begin
WriteColor(LItem.Level, LLog);
Break;
Expand Down

0 comments on commit 3b9b5a3

Please sign in to comment.