Explorar el Código

* Renamed TLogLevel vl** enumerations to ll**, to avoid
conflicts with fpmkunits TVerboseLevel

git-svn-id: trunk@21957 -

joost hace 13 años
padre
commit
7b13c9230d

+ 77 - 77
packages/fppkg/src/fpmkunitsrc.inc

@@ -102,7 +102,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '  TSourceType = (stDoc,stSrc,stExample,stTest);'#013#010+
   '  TSourceType = (stDoc,stSrc,stExample,stTest);'#013#010+
   '  TSourceTypes = set of TSourceType;'#013#010+
   '  TSourceTypes = set of TSourceType;'#013#010+
   #013#010+
   #013#010+
-  '  TVerboseLevel = (vlError,vlWarning,vlInfo,vldebug,vlCommand);'#013#010+
+  '  TVerboseLevel = (llError,llWarning,llInfo,llDebug,vlCommand);'#013#010+
   '  TVerboseLevels = Set of TVerboseLe','vel;'#013#010+
   '  TVerboseLevels = Set of TVerboseLe','vel;'#013#010+
   #013#010+
   #013#010+
   '  TCommandAt = (caBeforeCompile,caAfterCompile,'#013#010+
   '  TCommandAt = (caBeforeCompile,caAfterCompile,'#013#010+
@@ -235,8 +235,8 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '];'#013#010+
   '];'#013#010+
   '  ProgramTargets = [ttProgram,ttExampleProgram];'#013#010+
   '  ProgramTargets = [ttProgram,ttExampleProgram];'#013#010+
   #013#010+
   #013#010+
-  '  DefaultMessages = [vlError,vlWarning,vlCommand];'#013#010+
-  '  AllMessages = [vlError,vlWarning,vlCommand,vlInfo];'#013#010+
+  '  DefaultMessages = [llError,llWarning,vlCommand];'#013#010+
+  '  AllMessages = [llError,llWarning,vlCommand,llInfo];'#013#010+
   #013#010+
   #013#010+
   'Type'#013#010+
   'Type'#013#010+
   '  { TNa','medItem }'#013#010+
   '  { TNa','medItem }'#013#010+
@@ -3873,7 +3873,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '    if CheckOption(I,'#039'v'#039','#039'verbose'#039',false) then'#013#010+
   '    if CheckOption(I,'#039'v'#039','#039'verbose'#039',false) then'#013#010+
   '      FLogLevels:=AllMessages'#013#010+
   '      FLogLevels:=AllMessages'#013#010+
   '    else if CheckOption(I,'#039'd'#039','#039'debug'#039',false) then'#013#010+
   '    else if CheckOption(I,'#039'd'#039','#039'debug'#039',false) then'#013#010+
-  '      FLogLevels:=AllMessages+[vlDebug]'#013#010+
+  '      FLogLevels:=AllMessages+[llDebug]'#013#010+
   '    else if CheckCommand(I,'#039'm'#039','#039'compile'#039') th','en'#013#010+
   '    else if CheckCommand(I,'#039'm'#039','#039'compile'#039') th','en'#013#010+
   '      FRunMode:=rmCompile'#013#010+
   '      FRunMode:=rmCompile'#013#010+
   '    else if CheckCommand(I,'#039'b'#039','#039'build'#039') then'#013#010+
   '    else if CheckCommand(I,'#039'b'#039','#039'build'#039') then'#013#010+
@@ -3963,17 +3963,17 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   #013#010+
   #013#010+
   '  Procedure LogCmd(const LC,Msg : String);'#013#010+
   '  Procedure LogCmd(const LC,Msg : String);'#013#010+
   '  begin'#013#010+
   '  begin'#013#010+
-  '    Log(vlInfo,Format('#039' %-12s %s'#039',[LC,MSG]));'#013#010+
+  '    Log(llInfo,Format('#039' %-12s %s'#039',[LC,MSG]));'#013#010+
   '  end;'#013#010+
   '  end;'#013#010+
   #013#010+
   #013#010+
   '  Procedure LogOption(const C,LC,Msg : String);'#013#010+
   '  Procedure LogOption(const C,LC,Msg : String);'#013#010+
   '  begin'#013#010+
   '  begin'#013#010+
-  '    L','og(vlInfo,Format('#039' -%s --%-16s %s'#039',[C,LC,MSG]));'#013#010+
+  '    L','og(llInfo,Format('#039' -%s --%-16s %s'#039',[C,LC,MSG]));'#013#010+
   '  end;'#013#010+
   '  end;'#013#010+
   #013#010+
   #013#010+
   '  Procedure LogArgOption(const C,LC,Msg : String);'#013#010+
   '  Procedure LogArgOption(const C,LC,Msg : String);'#013#010+
   '  begin'#013#010+
   '  begin'#013#010+
-  '    Log(vlInfo,Format('#039' -%s --%-20s %s'#039',[C,LC+'#039'='#039'+SVal'+
+  '    Log(llInfo,Format('#039' -%s --%-20s %s'#039',[C,LC+'#039'='#039'+SVal'+
   'ue,MSG]));'#013#010+
   'ue,MSG]));'#013#010+
   '  end;'#013#010+
   '  end;'#013#010+
   #013#010+
   #013#010+
@@ -3981,18 +3981,18 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '  i: Integer;'#013#010+
   '  i: Integer;'#013#010+
   'begin'#013#010+
   'begin'#013#010+
   '  // Force the U','sage to be displayed'#013#010+
   '  // Force the U','sage to be displayed'#013#010+
-  '  Include(FLogLevels,vlInfo);'#013#010+
+  '  Include(FLogLevels,llInfo);'#013#010+
   '  If (FMT<>'#039#039') then'#013#010+
   '  If (FMT<>'#039#039') then'#013#010+
-  '    Log(vlInfo,Format(Fmt,Args));'#013#010+
-  '  Log(vlInfo,Format(SHelpUsage,[Paramstr(0)]));'#013#010+
-  '  Log(vlInfo,SHelpCommand);'#013#010+
+  '    Log(llInfo,Format(Fmt,Args));'#013#010+
+  '  Log(llInfo,Format(SHelpUsage,[Paramstr(0)]));'#013#010+
+  '  Log(llInfo,SHelpCommand);'#013#010+
   '  LogCmd('#039'compile'#039',SHelpCompile);'#013#010+
   '  LogCmd('#039'compile'#039',SHelpCompile);'#013#010+
   '  LogCmd('#039'build'#039',S','HelpBuild);'#013#010+
   '  LogCmd('#039'build'#039',S','HelpBuild);'#013#010+
   '  LogCmd('#039'install'#039',SHelpInstall);'#013#010+
   '  LogCmd('#039'install'#039',SHelpInstall);'#013#010+
   '  LogCmd('#039'clean'#039',SHelpClean);'#013#010+
   '  LogCmd('#039'clean'#039',SHelpClean);'#013#010+
   '  LogCmd('#039'archive'#039',SHelpArchive);'#013#010+
   '  LogCmd('#039'archive'#039',SHelpArchive);'#013#010+
   '  LogCmd('#039'manifest'#039',SHelpManifest);'#013#010+
   '  LogCmd('#039'manifest'#039',SHelpManifest);'#013#010+
-  '  Log(vlInfo,SHelpCmdOptions);'#013#010+
+  '  Log(llInfo,SHelpCmdOptions);'#013#010+
   '  LogOption('#039'h'#039','#039'help'#039',SHelpHelp);'#013#010+
   '  LogOption('#039'h'#039','#039'help'#039',SHelpHelp);'#013#010+
   '  LogOption('#039'l'#039','#039'list','-commands'#039',SHelpList);'#013#010+
   '  LogOption('#039'l'#039','#039'list','-commands'#039',SHelpList);'#013#010+
   '  LogOption('#039'n'#039','#039'nofpccfg'#039',SHelpNoFPCCfg);'#013#010+
   '  LogOption('#039'n'#039','#039'nofpccfg'#039',SHelpNoFPCCfg);'#013#010+
@@ -4026,7 +4026,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   'stomFpmakeCommandlineOptions.Count-1 do'#013#010+
   'stomFpmakeCommandlineOptions.Count-1 do'#013#010+
   '    LogArgOption('#039' '#039',CustomFpmakeCommandlineOptions.Names[i],C'+
   '    LogArgOption('#039' '#039',CustomFpmakeCommandlineOptions.Names[i],C'+
   'ustomFpmakeCommandlineOptions.ValueFromIndex[i]);'#013#010+
   'ustomFpmakeCommandlineOptions.ValueFromIndex[i]);'#013#010+
-  '  Log(vlInfo,'#039#039');'#013#010+
+  '  Log(llInfo,'#039#039');'#013#010+
   '  If (FMT<>',#039#039') then'#013#010+
   '  If (FMT<>',#039#039') then'#013#010+
   '    halt(1)'#013#010+
   '    halt(1)'#013#010+
   '  else'#013#010+
   '  else'#013#010+
@@ -4094,8 +4094,8 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '  except'#013#010+
   '  except'#013#010+
   '    On E : Exception do'#013#010+
   '    On E : Exception do'#013#010+
   '      begin'#013#010+
   '      begin'#013#010+
-  '      Log(vlError,SErrInstaller);'#013#010+
-  '      Log(vlError,E.Message);'#013#010+
+  '      Log(llError,SErrInstaller);'#013#010+
+  '      Log(llError,E.Message);'#013#010+
   '      Result:=False;'#013#010+
   '      Result:=False;'#013#010+
   '      end;'#013#010+
   '      end;'#013#010+
   '  end;'#013#010+
   '  end;'#013#010+
@@ -4182,7 +4182,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '  ConsoleOutput: TMemoryStream;'#013#010+
   '  ConsoleOutput: TMemoryStream;'#013#010+
   '  s: string;'#013#010+
   '  s: string;'#013#010+
   'begin'#013#010+
   'begin'#013#010+
-  '  Log(vlInfo,SInfoExecutingCommand,[Cmd,Args]);'#013#010+
+  '  Log(llInfo,SInfoExecutingCommand,[Cmd,Args]);'#013#010+
   '  if ListMode then'#013#010+
   '  if ListMode then'#013#010+
   '    Log(vlCommand,'#039'%s %s'#039',[Cmd,Args])'#013#010+
   '    Log(vlCommand,'#039'%s %s'#039',[Cmd,Args])'#013#010+
   '  ','else'#013#010+
   '  ','else'#013#010+
@@ -4217,9 +4217,9 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   'begin'#013#010+
   'begin'#013#010+
   '  result:=SysUtils.DirectoryExists(ADir);'#013#010+
   '  result:=SysUtils.DirectoryExists(ADir);'#013#010+
   '  if result then'#013#010+
   '  if result then'#013#010+
-  '    Log(vlDebug,SDbgDirectoryExists,[ADir,SDbgFound])'#013#010+
+  '    Log(llDebug,SDbgDirectoryExists,[ADir,SDbgFound])'#013#010+
   '  else'#013#010+
   '  else'#013#010+
-  '    Log(vlDebug,SDb','gDirectoryExists,[ADir,SDbgNotFound]);'#013#010+
+  '    Log(llDebug,SDb','gDirectoryExists,[ADir,SDbgNotFound]);'#013#010+
   'end;'#013#010+
   'end;'#013#010+
   #013#010+
   #013#010+
   #013#010+
   #013#010+
@@ -4228,9 +4228,9 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   'begin'#013#010+
   'begin'#013#010+
   '  result:=SysUtils.FileExists(AFileName);'#013#010+
   '  result:=SysUtils.FileExists(AFileName);'#013#010+
   '  if result then'#013#010+
   '  if result then'#013#010+
-  '    Log(vlDebug,SDbgFileExists,[AFileName,SDbgFound]',')'#013#010+
+  '    Log(llDebug,SDbgFileExists,[AFileName,SDbgFound]',')'#013#010+
   '  else'#013#010+
   '  else'#013#010+
-  '    Log(vlDebug,SDbgFileExists,[AFileName,SDbgNotFound]);'#013#010+
+  '    Log(llDebug,SDbgFileExists,[AFileName,SDbgNotFound]);'#013#010+
   'end;'#013#010+
   'end;'#013#010+
   #013#010+
   #013#010+
   #013#010+
   #013#010+
@@ -4259,10 +4259,10 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '    end;'#013#010+
   '    end;'#013#010+
   '    A:=FileGetDate(FIn.Handle);'#013#010+
   '    A:=FileGetDate(FIn.Handle);'#013#010+
   '    If (A=-1) t','hen'#013#010+
   '    If (A=-1) t','hen'#013#010+
-  '      log(vlWarning,SWarnFailedToGetTime,[Src])'#013#010+
+  '      log(llWarning,SWarnFailedToGetTime,[Src])'#013#010+
   '    else'#013#010+
   '    else'#013#010+
   '      if FileSetDate(S,A)<>0 then'#013#010+
   '      if FileSetDate(S,A)<>0 then'#013#010+
-  '        Log(vlWarning,SWarnFailedToSetTime,[S]);'#013#010+
+  '        Log(llWarning,SWarnFailedToSetTime,[S]);'#013#010+
   '  finally'#013#010+
   '  finally'#013#010+
   '    FreeAndNil(Fin);'#013#010+
   '    FreeAndNil(Fin);'#013#010+
   '  end;'#013#010+
   '  end;'#013#010+
@@ -4293,7 +4293,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   'procedure TBuildEngine.SysDeleteFile(Const AFileName',' : String);'#013#010+
   'procedure TBuildEngine.SysDeleteFile(Const AFileName',' : String);'#013#010+
   'begin'#013#010+
   'begin'#013#010+
   '  if not FileExists(AFileName) then'#013#010+
   '  if not FileExists(AFileName) then'#013#010+
-  '    Log(vldebug,SDbgFileDoesNotExist,[AFileName])'#013#010+
+  '    Log(llDebug,SDbgFileDoesNotExist,[AFileName])'#013#010+
   '  else If Not DeleteFile(AFileName) then'#013#010+
   '  else If Not DeleteFile(AFileName) then'#013#010+
   '    Error(SErrDeletingFile,[AFileName]);'#013#010+
   '    Error(SErrDeletingFile,[AFileName]);'#013#010+
   'end;'#013#010+
   'end;'#013#010+
@@ -4302,9 +4302,9 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   'ng);'#013#010+
   'ng);'#013#010+
   'begin'#013#010+
   'begin'#013#010+
   '  if not DirectoryExists(ADirectoryName) then'#013#010+
   '  if not DirectoryExists(ADirectoryName) then'#013#010+
-  '    Log(vldebug,SDbgDirectoryDoesNotExist,[ADirectoryName])'#013#010+
+  '    Log(llDebug,SDbgDirectoryDoesNotExist,[ADirectoryName])'#013#010+
   '  else if not IsDirectoryEmpty(ADirectoryName) then'#013#010+
   '  else if not IsDirectoryEmpty(ADirectoryName) then'#013#010+
-  '    Log(vldebug,SDbgDirectoryNotEmpty,','[ADirectoryName])'#013#010+
+  '    Log(llDebug,SDbgDirectoryNotEmpty,','[ADirectoryName])'#013#010+
   '  else If Not RemoveDir(ADirectoryName) then'#013#010+
   '  else If Not RemoveDir(ADirectoryName) then'#013#010+
   '    Error(SErrRemovingDirectory,[ADirectoryName]);'#013#010+
   '    Error(SErrRemovingDirectory,[ADirectoryName]);'#013#010+
   'end;'#013#010+
   'end;'#013#010+
@@ -4350,7 +4350,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   #013#010+
   #013#010+
   'begin'#013#010+
   'begin'#013#010+
   '  if not DirectoryExists(ADirectoryName) then'#013#010+
   '  if not DirectoryExists(ADirectoryName) then'#013#010+
-  '    Log(vldebug,SDbgDirectoryDoesNotExist,[ADirectoryName])'#013#010+
+  '    Log(llDebug,SDbgDirectoryDoesNotExist,[ADirectoryName])'#013#010+
   '  else If Not IntRemoveTree(ADirectoryName) then'#013#010+
   '  else If Not IntRemoveTree(ADirectoryName) then'#013#010+
   '    Error(SErrRemovingDirectory,[ADirect','oryName]);'#013#010+
   '    Error(SErrRemovingDirectory,[ADirect','oryName]);'#013#010+
   'end;'#013#010+
   'end;'#013#010+
@@ -4386,7 +4386,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   'begin'#013#010+
   'begin'#013#010+
   '  If Assigned(FOnLog) then'#013#010+
   '  If Assigned(FOnLog) then'#013#010+
   '    begin'#013#010+
   '    begin'#013#010+
-  '      if Level in [vlInfo,vlDebug] then'#013#010+
+  '      if Level in [llInfo,llDebug] then'#013#010+
   '        FOnLog(Level,FLogPre','fix+Msg)'#013#010+
   '        FOnLog(Level,FLogPre','fix+Msg)'#013#010+
   '      else'#013#010+
   '      else'#013#010+
   '        FOnLog(Level,Msg);'#013#010+
   '        FOnLog(Level,Msg);'#013#010+
@@ -4407,7 +4407,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   'begin'#013#010+
   'begin'#013#010+
   '  D:=FStartDir;'#013#010+
   '  D:=FStartDir;'#013#010+
   '  D:=D+ADir;'#013#010+
   '  D:=D+ADir;'#013#010+
-  '  Log(vlDebug,SDbgEnterDir,[D]);'#013#010+
+  '  Log(llDebug,SDbgEnterDir,[D]);'#013#010+
   '  If Not SetCurrentDir(D) then'#013#010+
   '  If Not SetCurrentDir(D) then'#013#010+
   '    Error(SErrChangeDirFailed,[D]);'#013#010+
   '    Error(SErrChangeDirFailed,[D]);'#013#010+
   'end;'#013#010+
   'end;'#013#010+
@@ -4567,11 +4567,11 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '  DD:=FileAge(Dest);'#013#010+
   '  DD:=FileAge(Dest);'#013#010+
   '  D1:=FileDateToDateTime(DS);'#013#010+
   '  D1:=FileDateToDateTime(DS);'#013#010+
   '  D2:=Fi','leDateToDateTime(DD);'#013#010+
   '  D2:=Fi','leDateToDateTime(DD);'#013#010+
-  '  Log(vlDebug,SDbgComparingFileTimes,[Src,DateTimeToStr(D1),Dest,DateT'+
+  '  Log(llDebug,SDbgComparingFileTimes,[Src,DateTimeToStr(D1),Dest,DateT'+
   'imeToStr(D2)]);'#013#010+
   'imeToStr(D2)]);'#013#010+
   '  Result:=D1>=D2;'#013#010+
   '  Result:=D1>=D2;'#013#010+
   '  If Result then'#013#010+
   '  If Result then'#013#010+
-  '    Log(vlInfo,SInfoSourceNewerDest,[Src,DateTimeToStr(D1),Dest,DateTi'+
+  '    Log(llInfo,SInfoSourceNewerDest,[Src,DateTimeToStr(D1),Dest,DateTi'+
   'meToStr(D2)]);'#013#010+
   'meToStr(D2)]);'#013#010+
   'end;'#013#010+
   'end;'#013#010+
   #013,#010+
   #013,#010+
@@ -4632,7 +4632,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '        end;'#013#010+
   '        end;'#013#010+
   '    end;'#013#010+
   '    end;'#013#010+
   '  if S<>'#039#039' then'#013#010+
   '  if S<>'#039#039' then'#013#010+
-  '    Log(vlDebug,SDbgSearchPath,[ASearchPathName,S]);'#013#010+
+  '    Log(llDebug,SDbgSearchPath,[ASearchPathName,S]);'#013#010+
   'end;'#013#010+
   'end;'#013#010+
   #013#010+
   #013#010+
   #013#010+
   #013#010+
@@ -4689,11 +4689,11 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '      SD:=IncludeTrailingPathDelimiter(SD);'#013#010+
   '      SD:=IncludeTrailingPathDelimiter(SD);'#013#010+
   '    T.FTargetSourceFileName:=SD+SF;'#013#010+
   '    T.FTargetSourceFileName:=SD+SF;'#013#010+
   '    if FileExists(T.TargetSourceFileName) then'#013#010+
   '    if FileExists(T.TargetSourceFileName) then'#013#010+
-  '      Log(vlDebug,SDbgResolvedSourceFile,[T.SourceFileName,T.Targ','etS'+
+  '      Log(llDebug,SDbgResolvedSourceFile,[T.SourceFileName,T.Targ','etS'+
   'ourceFileName])'#013#010+
   'ourceFileName])'#013#010+
   '    else'#013#010+
   '    else'#013#010+
   '      begin'#013#010+
   '      begin'#013#010+
-  '        Log(vlWarning,SWarnSourceFileNotFound,[T.SourceFileName,APacka'+
+  '        Log(llWarning,SWarnSourceFileNotFound,[T.SourceFileName,APacka'+
   'ge.Name,MakeTargetString(ACPU,AOS)]);'#013#010+
   'ge.Name,MakeTargetString(ACPU,AOS)]);'#013#010+
   '        T.FTargetSourceFileName:='#039#039';'#013#010+
   '        T.FTargetSourceFileName:='#039#039';'#013#010+
   '      end;'#013#010+
   '      end;'#013#010+
@@ -4733,11 +4733,11 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '                else'#013#010+
   '                else'#013#010+
   '                  D.TargetFileName:=D.Value;'#013#010+
   '                  D.TargetFileName:=D.Value;'#013#010+
   '                if FileExists(D.TargetFileName) then'#013#010+
   '                if FileExists(D.TargetFileName) then'#013#010+
-  '                  Log(vlDebug,SDbgRes','olvedIncludeFile,[D.Value,D.Tar'+
+  '                  Log(llDebug,SDbgRes','olvedIncludeFile,[D.Value,D.Tar'+
   'getFileName])'#013#010+
   'getFileName])'#013#010+
   '                else'#013#010+
   '                else'#013#010+
   '                  begin'#013#010+
   '                  begin'#013#010+
-  '                    Log(vlWarning,SWarnIncludeFileNotFound,[D.Value, A'+
+  '                    Log(llWarning,SWarnIncludeFileNotFound,[D.Value, A'+
   'Package.Name, MakeTargetString(ACPU,AOS)]);'#013#010+
   'Package.Name, MakeTargetString(ACPU,AOS)]);'#013#010+
   '                    D.TargetFile','Name:='#039#039';'#013#010+
   '                    D.TargetFile','Name:='#039#039';'#013#010+
   '                  end;'#013#010+
   '                  end;'#013#010+
@@ -4760,11 +4760,11 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '      SD:=IncludeTrailingPathDelimi','ter(SD);'#013#010+
   '      SD:=IncludeTrailingPathDelimi','ter(SD);'#013#010+
   '    T.FTargetSourceFileName:=SD+SF;'#013#010+
   '    T.FTargetSourceFileName:=SD+SF;'#013#010+
   '    if FileExists(T.TargetSourceFileName) then'#013#010+
   '    if FileExists(T.TargetSourceFileName) then'#013#010+
-  '      Log(vlDebug,SDbgResolvedSourceFile,[T.SourceFileName,T.TargetSou'+
+  '      Log(llDebug,SDbgResolvedSourceFile,[T.SourceFileName,T.TargetSou'+
   'rceFileName])'#013#010+
   'rceFileName])'#013#010+
   '    else'#013#010+
   '    else'#013#010+
   '      begin'#013#010+
   '      begin'#013#010+
-  '        Log(vlWarning,SWarnSourceFile','NotFound,[T.SourceFileName, APa'+
+  '        Log(llWarning,SWarnSourceFile','NotFound,[T.SourceFileName, APa'+
   'ckage.Name, MakeTargetString(ACPU,AOS)]);'#013#010+
   'ckage.Name, MakeTargetString(ACPU,AOS)]);'#013#010+
   '        T.FTargetSourceFileName:='#039#039';'#013#010+
   '        T.FTargetSourceFileName:='#039#039';'#013#010+
   '      end;'#013#010+
   '      end;'#013#010+
@@ -4788,7 +4788,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '        if (ACPU in T.CPUs) and (AOS in T.OSes) then'#013#010+
   '        if (ACPU in T.CPUs) and (AOS in T.OSes) then'#013#010+
   '          begin'#013#010+
   '          begin'#013#010+
   '            // Debug information'#013#010+
   '            // Debug information'#013#010+
-  '            Log(vlDebug,SDbgResolvingSourcesOfTarget',',[T.Name,MakeTar'+
+  '            Log(llDebug,SDbgResolvingSourcesOfTarget',',[T.Name,MakeTar'+
   'getString(ACPU,AOS)]);'#013#010+
   'getString(ACPU,AOS)]);'#013#010+
   '            LogIndent;'#013#010+
   '            LogIndent;'#013#010+
   #013#010+
   #013#010+
@@ -5081,7 +5081,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '  D:=APackage.G','etUnitsOutputDir(Defaults.CPU,Defaults.OS);'#013#010+
   '  D:=APackage.G','etUnitsOutputDir(Defaults.CPU,Defaults.OS);'#013#010+
   '  If not SysDirectoryExists(D) then'#013#010+
   '  If not SysDirectoryExists(D) then'#013#010+
   '    begin'#013#010+
   '    begin'#013#010+
-  '      Log(vlInfo,SInfoCreatingOutputDir,[D]);'#013#010+
+  '      Log(llInfo,SInfoCreatingOutputDir,[D]);'#013#010+
   '      CmdCreateDir(D);'#013#010+
   '      CmdCreateDir(D);'#013#010+
   '    end;'#013#010+
   '    end;'#013#010+
   #013#010+
   #013#010+
@@ -5094,7 +5094,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '          D:=APackage.GetBinOutputDir(Defaults.CPU,Defaults.OS);'#013#010+
   '          D:=APackage.GetBinOutputDir(Defaults.CPU,Defaults.OS);'#013#010+
   '          If n','ot SysDirectoryExists(D) then'#013#010+
   '          If n','ot SysDirectoryExists(D) then'#013#010+
   '            begin'#013#010+
   '            begin'#013#010+
-  '              Log(vlInfo,SInfoCreatingOutputDir,[D]);'#013#010+
+  '              Log(llInfo,SInfoCreatingOutputDir,[D]);'#013#010+
   '              CmdCreateDir(D);'#013#010+
   '              CmdCreateDir(D);'#013#010+
   '            end;'#013#010+
   '            end;'#013#010+
   '          //do not continue loop, directory is made anyway'#013#010+
   '          //do not continue loop, directory is made anyway'#013#010+
@@ -5177,7 +5177,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '      OFN:=OD+ATarget.GetOutPutFileName(Defaults.OS);'#013#010+
   '      OFN:=OD+ATarget.GetOutPutFileName(Defaults.OS);'#013#010+
   '      Res','ult:=Not FileExists(OFN);'#013#010+
   '      Res','ult:=Not FileExists(OFN);'#013#010+
   '      if Result then'#013#010+
   '      if Result then'#013#010+
-  '        Log(vlDebug,SDbgOutputNotYetAvailable,[OFN]);'#013#010+
+  '        Log(llDebug,SDbgOutputNotYetAvailable,[OFN]);'#013#010+
   '    end;'#013#010+
   '    end;'#013#010+
   #013#010+
   #013#010+
   '  // Check main source'#013#010+
   '  // Check main source'#013#010+
@@ -5208,11 +5208,11 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   'e, APackage.Name]);'#013#010+
   'e, APackage.Name]);'#013#010+
   '                    // If a de','pendent package is compiled we always '+
   '                    // If a de','pendent package is compiled we always '+
   'need to recompile'#013#010+
   'need to recompile'#013#010+
-  '                    Log(vldebug, SDbgDependencyOnUnit, [ATarget.Name,T'+
+  '                    Log(llDebug, SDbgDependencyOnUnit, [ATarget.Name,T'+
   '.Name]);'#013#010+
   '.Name]);'#013#010+
   '                    Result:=(T.State=tsCompiled);'#013#010+
   '                    Result:=(T.State=tsCompiled);'#013#010+
   '                    if Result then'#013#010+
   '                    if Result then'#013#010+
-  '                ','      Log(vldebug, SDbgDependencyUnitRecompiled, [T.'+
+  '                ','      Log(llDebug, SDbgDependencyUnitRecompiled, [T.'+
   'Name]);'#013#010+
   'Name]);'#013#010+
   '                  end;'#013#010+
   '                  end;'#013#010+
   '                depInclude :'#013#010+
   '                depInclude :'#013#010+
@@ -5222,7 +5222,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '                  end;'#013#010+
   '                  end;'#013#010+
   '                depPackage :'#013#010+
   '                depPackage :'#013#010+
   '                  begin'#013#010+
   '                  begin'#013#010+
-  '                    log(vlWarning,SWarnTargetDependsOnPackage,[ATarget'+
+  '                    log(llWarning,SWarnTargetDependsOnPackage,[ATarget'+
   '.Name, APackage.Name, d.Value]);'#013#010+
   '.Name, APackage.Name, d.Value]);'#013#010+
   '                  end;'#013#010+
   '                  end;'#013#010+
   '              end;'#013#010,
   '              end;'#013#010,
@@ -5233,7 +5233,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '    end;'#013#010+
   '    end;'#013#010+
   #013#010+
   #013#010+
   '  if result then'#013#010+
   '  if result then'#013#010+
-  '    Log(vlDebug,SDbgMustCompile,[ATarget.Name]);'#013#010+
+  '    Log(llDebug,SDbgMustCompile,[ATarget.Name]);'#013#010+
   'end;'#013#010+
   'end;'#013#010+
   #013#010+
   #013#010+
   #013#010+
   #013#010+
@@ -5243,7 +5243,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '  S : String;'#013#010+
   '  S : String;'#013#010+
   '  Env : TStrings;'#013#010+
   '  Env : TStrings;'#013#010+
   'begin'#013#010+
   'begin'#013#010+
-  '  Log(vlInfo,SInfoCompilingTarget,[ATarget.Name]);'#013#010+
+  '  Log(llInfo,SInfoCompilingTarget,[ATarget.Name]);'#013#010+
   '  LogIndent;'#013#010+
   '  LogIndent;'#013#010+
   '  ExecuteCommands(ATarget.Commands,caBeforeCompile);'#013#010+
   '  ExecuteCommands(ATarget.Commands,caBeforeCompile);'#013#010+
   '  If Assigned(ATarget.BeforeCompile) then'#013#010+
   '  If Assigned(ATarget.BeforeCompile) then'#013#010+
@@ -5286,7 +5286,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '  T : TTarget;'#013#010+
   '  T : TTarget;'#013#010+
   '  D : TDependency;'#013#010+
   '  D : TDependency;'#013#010+
   'begin'#013#010+
   'begin'#013#010+
-  '  Lo','g(vlDebug, Format(SDbgCompilingDependenciesOfTarget, [ATarget.Na'+
+  '  Lo','g(llDebug, Format(SDbgCompilingDependenciesOfTarget, [ATarget.Na'+
   'me]));'#013#010+
   'me]));'#013#010+
   '  LogIndent;'#013#010+
   '  LogIndent;'#013#010+
   '  For I:=0 to ATarget.Dependencies.Count-1 do'#013#010+
   '  For I:=0 to ATarget.Dependencies.Count-1 do'#013#010+
@@ -5313,7 +5313,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '                        tsNeutral :'#013#010+
   '                        tsNeutral :'#013#010+
   '                          MaybeCompile(APackage,T);'#013#010+
   '                          MaybeCompile(APackage,T);'#013#010+
   '                ','        tsConsidering :'#013#010+
   '                ','        tsConsidering :'#013#010+
-  '                          Log(vlWarning,SWarnCircularTargetDependency,'+
+  '                          Log(llWarning,SWarnCircularTargetDependency,'+
   '[ATarget.Name,T.Name]);'#013#010+
   '[ATarget.Name,T.Name]);'#013#010+
   '                      end;'#013#010+
   '                      end;'#013#010+
   '                    end;'#013#010+
   '                    end;'#013#010+
@@ -5336,7 +5336,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   'begin'#013#010+
   'begin'#013#010+
   '  if ATarget.State<>tsNeutral then'#013#010+
   '  if ATarget.State<>tsNeutral then'#013#010+
   '    Error(SErrInvalidState,[ATarget.Name]);'#013#010+
   '    Error(SErrInvalidState,[ATarget.Name]);'#013#010+
-  '  Log(vlDebug, Format(SDbgConsideringTarget, [ATarget.Name])',');'#013#010+
+  '  Log(llDebug, Format(SDbgConsideringTarget, [ATarget.Name])',');'#013#010+
   '  LogIndent;'#013#010+
   '  LogIndent;'#013#010+
   '  ATarget.FTargetState:=tsConsidering;'#013#010+
   '  ATarget.FTargetState:=tsConsidering;'#013#010+
   '  ResolveDependencies(ATarget.Dependencies,ATarget.Collection as TTarg'+
   '  ResolveDependencies(ATarget.Dependencies,ATarget.Collection as TTarg'+
@@ -5407,7 +5407,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '    end;'#013#010+
   '    end;'#013#010+
   #013#010+
   #013#010+
   '  if result then'#013#010+
   '  if result then'#013#010+
-  '    Log(vlDebug,SDbgMustCompile,[APackage.Name]);'#013#010+
+  '    Log(llDebug,SDbgMustCompile,[APackage.Name]);'#013#010+
   'end;'#013#010+
   'end;'#013#010+
   #013#010+
   #013#010+
   #013#010+
   #013#010+
@@ -5432,12 +5432,12 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '  S:=GetUnitDir(Result);'#013#010+
   '  S:=GetUnitDir(Result);'#013#010+
   '  if S<>'#039#039' then'#013#010+
   '  if S<>'#039#039' then'#013#010+
   '    begin'#013#010+
   '    begin'#013#010+
-  '      Log(vldebug, SDbgExternalDependency, [APackageName,S]);'#013#010+
+  '      Log(llDebug, SDbgExternalDependency, [APackageName,S]);'#013#010+
   '      // Load unit',' config if it exists'#013#010+
   '      // Load unit',' config if it exists'#013#010+
   '      F:=IncludeTrailingPathDelimiter(S)+UnitConfigFile;'#013#010+
   '      F:=IncludeTrailingPathDelimiter(S)+UnitConfigFile;'#013#010+
   '      if FileExists(F) then'#013#010+
   '      if FileExists(F) then'#013#010+
   '        begin'#013#010+
   '        begin'#013#010+
-  '          Log(vlDebug, Format(SDbgLoading, [F]));'#013#010+
+  '          Log(llDebug, Format(SDbgLoading, [F]));'#013#010+
   '          Result.LoadUnitConfigFromFile(F);'#013#010+
   '          Result.LoadUnitConfigFromFile(F);'#013#010+
   '        end;'#013#010+
   '        end;'#013#010+
   '      ','// Check recursive implicit dependencies'#013#010+
   '      ','// Check recursive implicit dependencies'#013#010+
@@ -5471,12 +5471,12 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '                    tsNeutral :'#013#010+
   '                    tsNeutral :'#013#010+
   '                      MaybeCompile(P);'#013#010+
   '                      MaybeCompile(P);'#013#010+
   '                    tsConsidering :'#013#010+
   '                    tsConsidering :'#013#010+
-  '                      Log(vlWarning,SWarnCircularPackageDependency,[AP'+
+  '                      Log(llWarning,SWarnCircularPackageDependency,[AP'+
   'ackage.Name,P.Name]);'#013#010+
   'ackage.Name,P.Name]);'#013#010+
   '                  end;'#013#010+
   '                  end;'#013#010+
   '       ','         end'#013#010+
   '       ','         end'#013#010+
   '              else'#013#010+
   '              else'#013#010+
-  '                Log(vlWarning,SWarnDependOnOtherPlatformPackage,[APack'+
+  '                Log(llWarning,SWarnDependOnOtherPlatformPackage,[APack'+
   'age.Name, D.Value, MakeTargetString(Defaults.CPU, Defaults.OS)]);'#013#010+
   'age.Name, D.Value, MakeTargetString(Defaults.CPU, Defaults.OS)]);'#013#010+
   '            end'#013#010+
   '            end'#013#010+
   '          else'#013#010+
   '          else'#013#010+
@@ -5487,7 +5487,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '          if (D.RequireChecksum<>$ffffffff) and'#013#010+
   '          if (D.RequireChecksum<>$ffffffff) and'#013#010+
   '             (P.InstalledChecksum<>$ffffffff) and'#013#010+
   '             (P.InstalledChecksum<>$ffffffff) and'#013#010+
   '             (P.InstalledChecksum<>D.RequireC','hecksum) then'#013#010+
   '             (P.InstalledChecksum<>D.RequireC','hecksum) then'#013#010+
-  '            Log(vlDebug,SDbgPackageChecksumChanged,[P.Name]);'#013#010+
+  '            Log(llDebug,SDbgPackageChecksumChanged,[P.Name]);'#013#010+
   '        end;'#013#010+
   '        end;'#013#010+
   '    end;'#013#010+
   '    end;'#013#010+
   'end;'#013#010+
   'end;'#013#010+
@@ -5517,7 +5517,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '  begin'#013#010+
   '  begin'#013#010+
   '    if (APackage.FBUTarget.Dependencies.Count>0) then'#013#010+
   '    if (APackage.FBUTarget.Dependencies.Count>0) then'#013#010+
   '      begin'#013#010+
   '      begin'#013#010+
-  '        Log(vldebug, Format(SDbgGenerateBuildUnit, [APackage.FBUTarget'+
+  '        Log(llDebug, Format(SDbgGenerateBuildUnit, [APackage.FBUTarget'+
   '.Name]));'#013#010+
   '.Name]));'#013#010+
   '        system.Assign(F,APackage.FBUTarget.FTargetSo','urceFileName);'#013+
   '        system.Assign(F,APackage.FBUTarget.FTargetSo','urceFileName);'#013+
   #010+
   #010+
@@ -5583,10 +5583,10 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '    else'#013#010+
   '    else'#013#010+
   '      begin'#013#010+
   '      begin'#013#010+
   '        if not(Defaults.CPU in T.CPUs) then'#013#010+
   '        if not(Defaults.CPU in T.CPUs) then'#013#010+
-  '          Log(vldebug, Format(SDbgSkippingTargetWrongCPU, [T.Name, CPU'+
+  '          Log(llDebug, Format(SDbgSkippingTargetWrongCPU, [T.Name, CPU'+
   'sToString(T.CPUs)]));'#013#010+
   'sToString(T.CPUs)]));'#013#010+
   '        if not(Defau','lts.OS in T.OSes) then'#013#010+
   '        if not(Defau','lts.OS in T.OSes) then'#013#010+
-  '          Log(vldebug, Format(SDbgSkippingTargetWrongOS, [T.Name, OSes'+
+  '          Log(llDebug, Format(SDbgSkippingTargetWrongOS, [T.Name, OSes'+
   'ToString(T.OSes)]));'#013#010+
   'ToString(T.OSes)]));'#013#010+
   '      end;'#013#010+
   '      end;'#013#010+
   '  end;'#013#010+
   '  end;'#013#010+
@@ -5594,7 +5594,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   'begin'#013#010+
   'begin'#013#010+
   '  cmdOpts := '#039#039';'#013#010+
   '  cmdOpts := '#039#039';'#013#010+
   #013#010+
   #013#010+
-  '  log(vlWarning,SWarnStartCompilingPackage,[APackage.Name, Defaults.Ta'+
+  '  log(llWarning,SWarnStartCompilingPackage,[APackage.Name, Defaults.Ta'+
   'rget]',');'#013#010+
   'rget]',');'#013#010+
   #013#010+
   #013#010+
   '  case Defaults.BuildMode of'#013#010+
   '  case Defaults.BuildMode of'#013#010+
@@ -5619,7 +5619,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '                   else if bmOneByOne in APackage.SupportBuildModes th'+
   '                   else if bmOneByOne in APackage.SupportBuildModes th'+
   'en'#013#010+
   'en'#013#010+
   '                     begin'#013#010+
   '                     begin'#013#010+
-  '                       log(vlInfo,SInfoFallbackBuildmode);'#013#010+
+  '                       log(llInfo,SInfoFallbackBuildmode);'#013#010+
   '                       APackage.FBuildMode:=bmOneByOne'#013#010+
   '                       APackage.FBuildMode:=bmOneByOne'#013#010+
   '        ','             end'#013#010+
   '        ','             end'#013#010+
   '                   else'#013#010+
   '                   else'#013#010+
@@ -5679,7 +5679,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '.Name + T.Extension + '#039' --descr='#039'+ T.XML;'#013#010+
   '.Name + T.Extension + '#039' --descr='#039'+ T.XML;'#013#010+
   '          end'#013#010+
   '          end'#013#010+
   '        else'#013#010+
   '        else'#013#010+
-  '          log(vldebug, SDbgTargetIsNotAUnitOrProgram,[T.Name]);'#013#010+
+  '          log(llDebug, SDbgTargetIsNotAUnitOrProgram,[T.Name]);'#013#010+
   '        end;'#013#010+
   '        end;'#013#010+
   '      en','d;'#013#010+
   '      en','d;'#013#010+
   #013#010+
   #013#010+
@@ -5701,7 +5701,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '      begin'#013#010+
   '      begin'#013#010+
   '        UC:=IncludeTrailingPathDelimiter(APackage.GetUnitsOutputDir(De'+
   '        UC:=IncludeTrailingPathDelimiter(APackage.GetUnitsOutputDir(De'+
   'faults.CPU,Default','s.OS))+UnitConfigFile;'#013#010+
   'faults.CPU,Default','s.OS))+UnitConfigFile;'#013#010+
-  '        Log(vlInfo, Format(SDbgGenerating, [UC]));'#013#010+
+  '        Log(llInfo, Format(SDbgGenerating, [UC]));'#013#010+
   '        APackage.SaveUnitConfigToFile(UC,Defaults.CPU,Defaults.OS);'#013+
   '        APackage.SaveUnitConfigToFile(UC,Defaults.CPU,Defaults.OS);'#013+
   #010+
   #010+
   '      end;'#013#010+
   '      end;'#013#010+
@@ -5749,10 +5749,10 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '  end;'#013#010+
   '  end;'#013#010+
   '  inc(FProgressCount);'#013#010+
   '  inc(FProgressCount);'#013#010+
   '  if FProgressMax>0 then'#013#010+
   '  if FProgressMax>0 then'#013#010+
-  '    log(vlWarning,SWarnCompilingPackagecompleteProgress,[(FProgressCou'+
+  '    log(llWarning,SWarnCompilingPackagecompleteProgress,[(FProgressCou'+
   'nt)/FProgressM','ax * 100, APackage.Name])'#013#010+
   'nt)/FProgressM','ax * 100, APackage.Name])'#013#010+
   '  else'#013#010+
   '  else'#013#010+
-  '    log(vlWarning,SWarnCompilingPackagecomplete,[APackage.Name]);'#013#010+
+  '    log(llWarning,SWarnCompilingPackagecomplete,[APackage.Name]);'#013#010+
   'end;'#013#010+
   'end;'#013#010+
   #013#010+
   #013#010+
   #013#010+
   #013#010+
@@ -5760,12 +5760,12 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   'begin'#013#010+
   'begin'#013#010+
   '  if APackage.State in [tsCompiled, tsNoCompile] then'#013#010+
   '  if APackage.State in [tsCompiled, tsNoCompile] then'#013#010+
   '    begi','n'#013#010+
   '    begi','n'#013#010+
-  '      Log(vlInfo,SInfoPackageAlreadyProcessed,[APackage.Name]);'#013#010+
+  '      Log(llInfo,SInfoPackageAlreadyProcessed,[APackage.Name]);'#013#010+
   '      Exit;'#013#010+
   '      Exit;'#013#010+
   '    end;'#013#010+
   '    end;'#013#010+
   '  if APackage.State<>tsNeutral then'#013#010+
   '  if APackage.State<>tsNeutral then'#013#010+
   '    Error(SErrInvalidState,[APackage.Name]);'#013#010+
   '    Error(SErrInvalidState,[APackage.Name]);'#013#010+
-  '  Log(vlDebug,SDbgConsideringPackage,[APackage.Name]);'#013#010+
+  '  Log(llDebug,SDbgConsideringPackage,[APackage.Name]);'#013#010+
   '  LogInden','t;'#013#010+
   '  LogInden','t;'#013#010+
   '  APackage.FTargetState:=tsConsidering;'#013#010+
   '  APackage.FTargetState:=tsConsidering;'#013#010+
   '  ResolveDependencies(APackage.Dependencies,(APackage.Collection as TP'+
   '  ResolveDependencies(APackage.Dependencies,(APackage.Collection as TP'+
@@ -5870,7 +5870,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '  If (Apackage.State<>tsC','ompiled) then'#013#010+
   '  If (Apackage.State<>tsC','ompiled) then'#013#010+
   '    MaybeCompile(APackage);'#013#010+
   '    MaybeCompile(APackage);'#013#010+
   '  try'#013#010+
   '  try'#013#010+
-  '    Log(vlInfo,SInfoInstallingPackage,[APackage.Name]);'#013#010+
+  '    Log(llInfo,SInfoInstallingPackage,[APackage.Name]);'#013#010+
   '    If (APackage.Directory<>'#039#039') then'#013#010+
   '    If (APackage.Directory<>'#039#039') then'#013#010+
   '      EnterDir(APackage.Directory);'#013#010+
   '      EnterDir(APackage.Directory);'#013#010+
   '    DoBeforeInstall(APackage);'#013#010+
   '    DoBeforeInstall(APackage);'#013#010+
@@ -5946,7 +5946,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '  IOS  : TOS;'#013#010+
   '  IOS  : TOS;'#013#010+
   'begin'#013#010+
   'begin'#013#010+
   '  A:=FStartDir+ ','APackage.FileName + ZipExt;'#013#010+
   '  A:=FStartDir+ ','APackage.FileName + ZipExt;'#013#010+
-  '  Log(vlInfo,SInfoArchivingPackage,[APackage.Name,A]);'#013#010+
+  '  Log(llInfo,SInfoArchivingPackage,[APackage.Name,A]);'#013#010+
   '  try'#013#010+
   '  try'#013#010+
   '    If (APackage.Directory<>'#039#039') then'#013#010+
   '    If (APackage.Directory<>'#039#039') then'#013#010+
   '      EnterDir(APackage.Directory);'#013#010+
   '      EnterDir(APackage.Directory);'#013#010+
@@ -5971,7 +5971,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   #013#010+
   #013#010+
   '      //show all files'#013#010+
   '      //show all files'#013#010+
   '      for i := 0 to L.Count-1 do'#013#010+
   '      for i := 0 to L.Count-1 do'#013#010+
-  '        Log(vlDebug, Format(SDbgArchivingFile, [L[i]]));'#013#010+
+  '        Log(llDebug, Format(SDbgArchivingFile, [L[i]]));'#013#010+
   #013#010+
   #013#010+
   '{$ifdef HAS_UNIT_ZIPPER}'#013#010+
   '{$ifdef HAS_UNIT_ZIPPER}'#013#010+
   '      if not Assigned(ArchiveFilesProc) ','then'#013#010+
   '      if not Assigned(ArchiveFilesProc) ','then'#013#010+
@@ -6025,7 +6025,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '//  AOS: TOS;'#013#010+
   '//  AOS: TOS;'#013#010+
   '  DirectoryList : TStringList;'#013#010+
   '  DirectoryList : TStringList;'#013#010+
   'begin'#013#010,
   'begin'#013#010,
-  '  Log(vlInfo,SInfoCleaningPackage,[APackage.Name]);'#013#010+
+  '  Log(llInfo,SInfoCleaningPackage,[APackage.Name]);'#013#010+
   '  try'#013#010+
   '  try'#013#010+
   '    If (APackage.Directory<>'#039#039') then'#013#010+
   '    If (APackage.Directory<>'#039#039') then'#013#010+
   '      EnterDir(APackage.Directory);'#013#010+
   '      EnterDir(APackage.Directory);'#013#010+
@@ -6124,7 +6124,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '    if PD<>'#039#039' then'#013#010+
   '    if PD<>'#039#039' then'#013#010+
   '      PD:=IncludeTrailingPathDelimiter(PD);'#013#010+
   '      PD:=IncludeTrailingPathDelimiter(PD);'#013#010+
   '    MF:=PD+ManifestFile;'#013#010+
   '    MF:=PD+ManifestFile;'#013#010+
-  '    Log(vlDebug, Format(SDbgGenerating, [MF]));'#013#010+
+  '    Log(llDebug, Format(SDbgGenerating, [MF]));'#013#010+
   '    L.Add('#039'<?xml',' version="1.0"?>'#039');'#013#010+
   '    L.Add('#039'<?xml',' version="1.0"?>'#039');'#013#010+
   '    L.Add('#039'<packages>'#039');'#013#010+
   '    L.Add('#039'<packages>'#039');'#013#010+
   '    APackage.GetManifest(L);'#013#010+
   '    APackage.GetManifest(L);'#013#010+
@@ -6153,7 +6153,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '      else'#013#010+
   '      else'#013#010+
   '        begin'#013#010+
   '        begin'#013#010+
   '        inc(FProgressCount);'#013#010+
   '        inc(FProgressCount);'#013#010+
-  '        log(vlWarning,SWarnSkipPackageTargetProgress,[(FProgressCount)'+
+  '        log(llWarning,SWarnSkipPackageTargetProgress,[(FProgressCount)'+
   '/FProgressMax * 100, P.Name, Defaults.Target]);'#013#010+
   '/FProgressMax * 100, P.Name, Defaults.Target]);'#013#010+
   '        end;'#013#010+
   '        end;'#013#010+
   '    end;'#013#010+
   '    end;'#013#010+
@@ -6175,11 +6175,11 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   '      If PackageOK(P) then'#013#010+
   '      If PackageOK(P) then'#013#010+
   '        begin'#013#010+
   '        begin'#013#010+
   '          Install(P);'#013#010+
   '          Install(P);'#013#010+
-  '          log(vlWarning, SWarnInstallationPackagecomplete, [P.Name, De'+
+  '          log(llWarning, SWarnInstallationPackagecomplete, [P.Name, De'+
   'faults.Target]);'#013#010+
   'faults.Target]);'#013#010+
   '        end'#013#010+
   '        end'#013#010+
   '   ','   else'#013#010+
   '   ','   else'#013#010+
-  '        log(vlWarning,SWarnSkipPackageTarget,[P.Name, Defaults.Target]'+
+  '        log(llWarning,SWarnSkipPackageTarget,[P.Name, Defaults.Target]'+
   ');'#013#010+
   ');'#013#010+
   '    end;'#013#010+
   '    end;'#013#010+
   '  If Assigned(AfterInstall) then'#013#010+
   '  If Assigned(AfterInstall) then'#013#010+
@@ -6194,7 +6194,7 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   'begin'#013#010+
   'begin'#013#010+
   '  If Assigned(BeforeArchive) then'#013#010+
   '  If Assigned(BeforeArchive) then'#013#010+
   '    BeforeArchive(Self);'#013#010+
   '    BeforeArchive(Self);'#013#010+
-  '  Log(vlDebug, SDbgBuildEngineArchiving);'#013#010+
+  '  Log(llDebug, SDbgBuildEngineArchiving);'#013#010+
   '  For I:=0 to Packages.Count-1 do'#013#010+
   '  For I:=0 to Packages.Count-1 do'#013#010+
   '    begin'#013#010+
   '    begin'#013#010+
   '      P:=Packages.PackageItems[i];'#013#010+
   '      P:=Packages.PackageItems[i];'#013#010+
@@ -6231,13 +6231,13 @@ const fpmkunitsrc : array[0..809,1..240] of char=(
   'begin'#013#010+
   'begin'#013#010+
   '  If Assigned(BeforeClean) then'#013#010+
   '  If Assigned(BeforeClean) then'#013#010+
   '    BeforeClean(Self);'#013#010+
   '    BeforeClean(Self);'#013#010+
-  '  Log(vldebug, SDbgBuildEngineCleaning);'#013#010+
+  '  Log(llDebug, SDbgBuildEngineCleaning);'#013#010+
   '  For I:=0 to Packages.Count-1 do'#013#010+
   '  For I:=0 to Packages.Count-1 do'#013#010+
   '    be','gin'#013#010+
   '    be','gin'#013#010+
   '    P:=Packages.PackageItems[i];'#013#010+
   '    P:=Packages.PackageItems[i];'#013#010+
   '    If AllTargets or PackageOK(P) then'#013#010+
   '    If AllTargets or PackageOK(P) then'#013#010+
   '      Clean(P, AllTargets);'#013#010+
   '      Clean(P, AllTargets);'#013#010+
-  '    log(vlWarning, SWarnCleanPackagecomplete, [P.Name]);'#013#010+
+  '    log(llWarning, SWarnCleanPackagecomplete, [P.Name]);'#013#010+
   '    end;'#013#010+
   '    end;'#013#010+
   '  If Assigned(AfterClean) then'#013#010+
   '  If Assigned(AfterClean) then'#013#010+
   '    AfterClean(Self);'#013#010+
   '    AfterClean(Self);'#013#010+

+ 12 - 12
packages/fppkg/src/pkgcommands.pp

@@ -124,16 +124,16 @@ var
 
 
 procedure TCommandListSettings.Execute;
 procedure TCommandListSettings.Execute;
 begin
 begin
-  GlobalOptions.LogValues(vlProgres);
-  CompilerOptions.LogValues(vlProgres,'');
-  FPMakeCompilerOptions.LogValues(vlProgres,'fpmake-building ');
+  GlobalOptions.LogValues(llProgres);
+  CompilerOptions.LogValues(llProgres,'');
+  FPMakeCompilerOptions.LogValues(llProgres,'fpmake-building ');
 end;
 end;
 
 
 
 
 procedure TCommandAddConfig.Execute;
 procedure TCommandAddConfig.Execute;
 begin
 begin
 {
 {
-  Log(vlInfo,SLogGeneratingCompilerConfig,[S]);
+  Log(llInfo,SLogGeneratingCompilerConfig,[S]);
   Options.InitCompilerDefaults(Args[2]);
   Options.InitCompilerDefaults(Args[2]);
   Options.SaveCompilerToFile(S);
   Options.SaveCompilerToFile(S);
 }
 }
@@ -149,13 +149,13 @@ begin
   if (GlobalOptions.RemoteMirrorsURL<>'') and
   if (GlobalOptions.RemoteMirrorsURL<>'') and
      (GlobalOptions.RemoteRepository='auto') then
      (GlobalOptions.RemoteRepository='auto') then
     begin
     begin
-      Log(vlCommands,SLogDownloading,[GlobalOptions.RemoteMirrorsURL,GlobalOptions.LocalMirrorsFile]);
+      Log(llCommands,SLogDownloading,[GlobalOptions.RemoteMirrorsURL,GlobalOptions.LocalMirrorsFile]);
       DownloadFile(GlobalOptions.RemoteMirrorsURL,GlobalOptions.LocalMirrorsFile);
       DownloadFile(GlobalOptions.RemoteMirrorsURL,GlobalOptions.LocalMirrorsFile);
       LoadLocalAvailableMirrors;
       LoadLocalAvailableMirrors;
     end;
     end;
   // Download packages.xml
   // Download packages.xml
   PackagesURL:=GetRemoteRepositoryURL(PackagesFileName);
   PackagesURL:=GetRemoteRepositoryURL(PackagesFileName);
-  Log(vlCommands,SLogDownloading,[PackagesURL,GlobalOptions.LocalPackagesFile]);
+  Log(llCommands,SLogDownloading,[PackagesURL,GlobalOptions.LocalPackagesFile]);
   DownloadFile(PackagesURL,GlobalOptions.LocalPackagesFile);
   DownloadFile(PackagesURL,GlobalOptions.LocalPackagesFile);
   // Read the repository again
   // Read the repository again
   LoadLocalAvailableRepository;
   LoadLocalAvailableRepository;
@@ -210,7 +210,7 @@ begin
   { Unzip Archive }
   { Unzip Archive }
   With TUnZipper.Create do
   With TUnZipper.Create do
     try
     try
-      Log(vlCommands,SLogUnzippping,[ArchiveFile]);
+      Log(llCommands,SLogUnzippping,[ArchiveFile]);
       OutputPath:=PackageBuildPath(P);
       OutputPath:=PackageBuildPath(P);
       UnZipAllFiles(ArchiveFile);
       UnZipAllFiles(ArchiveFile);
     Finally
     Finally
@@ -404,12 +404,12 @@ begin
               else
               else
                 status:='OK';
                 status:='OK';
             end;
             end;
-          Log(vlInfo,SLogPackageDependency,
+          Log(llInfo,SLogPackageDependency,
               [D.PackageName,D.MinVersion.AsString,PackageInstalledVersionStr(D.PackageName),
               [D.PackageName,D.MinVersion.AsString,PackageInstalledVersionStr(D.PackageName),
                PackageAvailableVersionStr(D.PackageName),status]);
                PackageAvailableVersionStr(D.PackageName),status]);
         end
         end
       else
       else
-        Log(vlDebug,SDbgPackageDependencyOtherTarget,[D.PackageName,MakeTargetString(CompilerOptions.CompilerCPU,CompilerOptions.CompilerOS)]);
+        Log(llDebug,SDbgPackageDependencyOtherTarget,[D.PackageName,MakeTargetString(CompilerOptions.CompilerCPU,CompilerOptions.CompilerOS)]);
     end;
     end;
   // Give error on first missing dependency
   // Give error on first missing dependency
   if assigned(MissingDependency) then
   if assigned(MissingDependency) then
@@ -418,7 +418,7 @@ begin
   if L.Count > 0 then
   if L.Count > 0 then
     begin
     begin
       if DependenciesDepth=0 then
       if DependenciesDepth=0 then
-        pkgglobals.Log(vlProgres,SProgrInstallDependencies);
+        pkgglobals.Log(llProgres,SProgrInstallDependencies);
       inc(DependenciesDepth);
       inc(DependenciesDepth);
 
 
       for i:=0 to L.Count-1 do
       for i:=0 to L.Count-1 do
@@ -426,7 +426,7 @@ begin
 
 
       dec(DependenciesDepth);
       dec(DependenciesDepth);
       if DependenciesDepth=0 then
       if DependenciesDepth=0 then
-        pkgglobals.Log(vlProgres,SProgrDependenciesInstalled);
+        pkgglobals.Log(llProgres,SProgrDependenciesInstalled);
     end;
     end;
   FreeAndNil(L);
   FreeAndNil(L);
   if FreeManifest then
   if FreeManifest then
@@ -444,7 +444,7 @@ begin
     FindBrokenPackages(SL);
     FindBrokenPackages(SL);
     if SL.Count=0 then
     if SL.Count=0 then
       break;
       break;
-    pkgglobals.Log(vlProgres,SProgrReinstallDependent);
+    pkgglobals.Log(llProgres,SProgrReinstallDependent);
     for i:=0 to SL.Count-1 do
     for i:=0 to SL.Count-1 do
       begin
       begin
         ExecuteAction(SL[i],'build');
         ExecuteAction(SL[i],'build');

+ 2 - 2
packages/fppkg/src/pkgdownload.pp

@@ -168,8 +168,8 @@ begin
   DownloaderClass:=GetDownloader(GlobalOptions.Downloader);
   DownloaderClass:=GetDownloader(GlobalOptions.Downloader);
   with DownloaderClass.Create(nil) do
   with DownloaderClass.Create(nil) do
     try
     try
-      Log(vlCommands,SLogDownloading,[PackageRemoteArchive(P),PackageLocalArchive(P)]);
-      pkgglobals.log(vlProgres,SProgrDownloadPackage,[P.Name, P.Version.AsString]);
+      Log(llCommands,SLogDownloading,[PackageRemoteArchive(P),PackageLocalArchive(P)]);
+      pkgglobals.log(llProgres,SProgrDownloadPackage,[P.Name, P.Version.AsString]);
       Download(PackageRemoteArchive(P),PackageLocalArchive(P));
       Download(PackageRemoteArchive(P),PackageLocalArchive(P));
     finally
     finally
       Free;
       Free;

+ 4 - 4
packages/fppkg/src/pkgfpmake.pp

@@ -224,7 +224,7 @@ begin
       // Compile options
       // Compile options
       //   -- default is to optimize, smartlink and strip to reduce
       //   -- default is to optimize, smartlink and strip to reduce
       //      the executable size (there can be 100's of fpmake's on a system)
       //      the executable size (there can be 100's of fpmake's on a system)
-      if vlInfo in LogLevels then
+      if llInfo in LogLevels then
         AddOption('-vi');
         AddOption('-vi');
       AddOption('-O2');
       AddOption('-O2');
       AddOption('-XXs');
       AddOption('-XXs');
@@ -243,7 +243,7 @@ begin
       DeleteDir(TempBuildDir);
       DeleteDir(TempBuildDir);
     end
     end
   else
   else
-    Log(vlCommands,SLogNotCompilingFPMake);
+    Log(llCommands,SLogNotCompilingFPMake);
 end;
 end;
 
 
 
 
@@ -295,9 +295,9 @@ begin
   { Maybe compile fpmake executable? }
   { Maybe compile fpmake executable? }
   ExecuteAction(PackageName,'compilefpmake');
   ExecuteAction(PackageName,'compilefpmake');
   { Create options }
   { Create options }
-  if vlDebug in LogLevels then
+  if llDebug in LogLevels then
     AddOption('--debug')
     AddOption('--debug')
-  else if vlInfo in LogLevels then
+  else if llInfo in LogLevels then
     AddOption('--verbose');
     AddOption('--verbose');
   if P.RecompileBroken and
   if P.RecompileBroken and
      (P.FPMakeOptionsString<>'') then // Check for a empty FPMakeOptionString for packages being installed with an old fpmkunit
      (P.FPMakeOptionsString<>'') then // Check for a empty FPMakeOptionString for packages being installed with an old fpmkunit

+ 13 - 13
packages/fppkg/src/pkgglobals.pp

@@ -52,13 +52,13 @@ Const
   );
   );
 
 
 Type
 Type
-  TLogLevel = (vlError,vlWarning,vlInfo,vlCommands,vlDebug,vlProgres);
+  TLogLevel = (llError,llWarning,llInfo,llCommands,llDebug,llProgres);
   TLogLevels = Set of TLogLevel;
   TLogLevels = Set of TLogLevel;
   TLogProc = procedure(Level:TLogLevel;Const Msg: String);
   TLogProc = procedure(Level:TLogLevel;Const Msg: String);
 
 
 const
 const
-  DefaultLogLevels = [vlError,vlWarning, vlProgres];
-  AllLogLevels = [vlError,vlWarning,vlCommands,vlInfo];
+  DefaultLogLevels = [llError,llWarning, llProgres];
+  AllLogLevels = [llError,llWarning,llCommands,llInfo];
 
 
 type
 type
   EPackagerError = class(Exception);
   EPackagerError = class(Exception);
@@ -154,15 +154,15 @@ begin
     exit;
     exit;
   Prefix:='';
   Prefix:='';
   case Level of
   case Level of
-    vlWarning :
+    llWarning :
       Prefix:=SWarning;
       Prefix:=SWarning;
-    vlError :
+    llError :
       Prefix:=SError;
       Prefix:=SError;
-{    vlInfo :
+{    llInfo :
       Prefix:='I: ';
       Prefix:='I: ';
-    vlCommands :
+    llCommands :
       Prefix:='C: ';
       Prefix:='C: ';
-    vlDebug :
+    llDebug :
       Prefix:='D: '; }
       Prefix:='D: '; }
   end;
   end;
   Writeln(stdOut,Prefix,Msg);
   Writeln(stdOut,Prefix,Msg);
@@ -253,9 +253,9 @@ Function DirectoryExistsLog(const ADir:string):Boolean;
 begin
 begin
   result:=SysUtils.DirectoryExists(ADir);
   result:=SysUtils.DirectoryExists(ADir);
   if result then
   if result then
-    log(vlDebug,SDbgDirectoryExists,[ADir,SDbgFound])
+    log(llDebug,SDbgDirectoryExists,[ADir,SDbgFound])
   else
   else
-    log(vlDebug,SDbgDirectoryExists,[ADir,SDbgNotFound]);
+    log(llDebug,SDbgDirectoryExists,[ADir,SDbgNotFound]);
 end;
 end;
 
 
 
 
@@ -263,9 +263,9 @@ Function FileExistsLog(const AFileName:string):Boolean;
 begin
 begin
   result:=SysUtils.FileExists(AFileName);
   result:=SysUtils.FileExists(AFileName);
   if result then
   if result then
-    log(vlDebug,SDbgFileExists,[AFileName,SDbgFound])
+    log(llDebug,SDbgFileExists,[AFileName,SDbgFound])
   else
   else
-    log(vlDebug,SDbgFileExists,[AFileName,SDbgNotFound]);
+    log(llDebug,SDbgFileExists,[AFileName,SDbgNotFound]);
 end;
 end;
 
 
 
 
@@ -274,7 +274,7 @@ Var
   BFN : String;
   BFN : String;
 begin
 begin
   BFN:=AFileName+'.bak';
   BFN:=AFileName+'.bak';
-  log(vlDebug,SDbgBackupFile,[BFN]);
+  log(llDebug,SDbgBackupFile,[BFN]);
   If not RenameFile(AFileName,BFN) then
   If not RenameFile(AFileName,BFN) then
     Error(SErrBackupFailed,[AFileName,BFN]);
     Error(SErrBackupFailed,[AFileName,BFN]);
 end;
 end;

+ 6 - 6
packages/fppkg/src/pkghandler.pp

@@ -102,7 +102,7 @@ begin
   FullActionName:=APackageName+AAction;
   FullActionName:=APackageName+AAction;
   if ExecutedActions.Find(FullActionName)<>nil then
   if ExecutedActions.Find(FullActionName)<>nil then
     begin
     begin
-      Log(vlDebug,'Already executed or executing action '+FullActionName);
+      Log(llDebug,'Already executed or executing action '+FullActionName);
       exit;
       exit;
     end;
     end;
 
 
@@ -112,9 +112,9 @@ begin
   pkghandlerclass:=GetPkgHandler(AAction);
   pkghandlerclass:=GetPkgHandler(AAction);
   With pkghandlerclass.Create(nil,APackageName) do
   With pkghandlerclass.Create(nil,APackageName) do
     try
     try
-      Log(vlDebug,SLogRunAction+' start',[AAction]);
+      Log(llDebug,SLogRunAction+' start',[AAction]);
       Execute;
       Execute;
-      Log(vlDebug,SLogRunAction+' end',[AAction]);
+      Log(llDebug,SLogRunAction+' end',[AAction]);
     finally
     finally
       Free;
       Free;
     end;
     end;
@@ -220,7 +220,7 @@ var
 
 
         if ch in [#10, #13] then
         if ch in [#10, #13] then
         begin
         begin
-          log(vlProgres,sLine);
+          log(llProgres,sLine);
           sLine := '';
           sLine := '';
           BuffPos := ConsoleOutput.Position;
           BuffPos := ConsoleOutput.Position;
         end
         end
@@ -270,7 +270,7 @@ end;
 
 
 Function TPackageHandler.ExecuteProcess(Const Prog,Args:String):Integer;
 Function TPackageHandler.ExecuteProcess(Const Prog,Args:String):Integer;
 begin
 begin
-  Log(vlCommands,SLogExecute,[Prog,Args]);
+  Log(llCommands,SLogExecute,[Prog,Args]);
   Flush(StdOut);
   Flush(StdOut);
 {$ifdef HAS_UNIT_PROCESS}
 {$ifdef HAS_UNIT_PROCESS}
   Result:=ExecuteFPC(Prog,Args);
   Result:=ExecuteFPC(Prog,Args);
@@ -282,7 +282,7 @@ end;
 
 
 Procedure TPackageHandler.SetCurrentDir(Const ADir:String);
 Procedure TPackageHandler.SetCurrentDir(Const ADir:String);
 begin
 begin
-  Log(vlCommands,SLogChangeDir,[ADir]);
+  Log(llCommands,SLogChangeDir,[ADir]);
   if not SysUtils.SetCurrentDir(ADir) then
   if not SysUtils.SetCurrentDir(ADir) then
     Error(SErrChangeDirFailed,[ADir]);
     Error(SErrChangeDirFailed,[ADir]);
 end;
 end;

+ 2 - 2
packages/fppkg/src/pkgmkconv.pp

@@ -598,7 +598,7 @@ Var
   B : Boolean;
   B : Boolean;
 
 
 begin
 begin
-  Log(vlDebug,'Converting '+AFileName);
+  Log(llDebug,'Converting '+AFileName);
   T:=Nil;
   T:=Nil;
   D:=Nil;
   D:=Nil;
   S:=Nil;
   S:=Nil;
@@ -684,7 +684,7 @@ Var
   L : TStrings;
   L : TStrings;
 
 
 begin
 begin
-  Log(vlInfo,SLogGeneratingFPMake);
+  Log(llInfo,SLogGeneratingFPMake);
   L:=TStringList.Create;
   L:=TStringList.Create;
   Try
   Try
     StartInstaller(L);
     StartInstaller(L);

+ 14 - 14
packages/fppkg/src/pkgoptions.pp

@@ -238,11 +238,11 @@ begin
   GlobalOptions.CompilerConfig:=GlobalOptions.DefaultCompilerConfig;
   GlobalOptions.CompilerConfig:=GlobalOptions.DefaultCompilerConfig;
   // Tracing of what we've done above, need to be done after the verbosity is set
   // Tracing of what we've done above, need to be done after the verbosity is set
   if GeneratedConfig then
   if GeneratedConfig then
-    pkgglobals.Log(vlDebug,SLogGeneratingGlobalConfig,[cfgfile])
+    pkgglobals.Log(llDebug,SLogGeneratingGlobalConfig,[cfgfile])
   else
   else
-    pkgglobals.Log(vlDebug,SLogLoadingGlobalConfig,[cfgfile]);
+    pkgglobals.Log(llDebug,SLogLoadingGlobalConfig,[cfgfile]);
   // Log configuration
   // Log configuration
-  GlobalOptions.LogValues(vlDebug);
+  GlobalOptions.LogValues(llDebug);
 end;
 end;
 
 
 
 
@@ -255,7 +255,7 @@ begin
   CompilerOptions.UpdateLocalRepositoryOption;
   CompilerOptions.UpdateLocalRepositoryOption;
   if FileExists(S) then
   if FileExists(S) then
     begin
     begin
-      pkgglobals.Log(vlDebug,SLogLoadingCompilerConfig,[S]);
+      pkgglobals.Log(llDebug,SLogLoadingCompilerConfig,[S]);
       CompilerOptions.LoadCompilerFromFile(S)
       CompilerOptions.LoadCompilerFromFile(S)
     end
     end
   else
   else
@@ -263,7 +263,7 @@ begin
       // Generate a default configuration if it doesn't exists
       // Generate a default configuration if it doesn't exists
       if GlobalOptions.CompilerConfig='default' then
       if GlobalOptions.CompilerConfig='default' then
         begin
         begin
-          pkgglobals.Log(vlDebug,SLogGeneratingCompilerConfig,[S]);
+          pkgglobals.Log(llDebug,SLogGeneratingCompilerConfig,[S]);
           CompilerOptions.InitCompilerDefaults;
           CompilerOptions.InitCompilerDefaults;
           CompilerOptions.SaveCompilerToFile(S);
           CompilerOptions.SaveCompilerToFile(S);
           if CompilerOptions.SaveInifileChanges then
           if CompilerOptions.SaveInifileChanges then
@@ -273,13 +273,13 @@ begin
         Error(SErrMissingCompilerConfig,[S]);
         Error(SErrMissingCompilerConfig,[S]);
     end;
     end;
   // Log compiler configuration
   // Log compiler configuration
-  CompilerOptions.LogValues(vlDebug,'');
+  CompilerOptions.LogValues(llDebug,'');
   // Load FPMake compiler config, this is normally the same config as above
   // Load FPMake compiler config, this is normally the same config as above
   S:=GlobalOptions.CompilerConfigDir+GlobalOptions.FPMakeCompilerConfig;
   S:=GlobalOptions.CompilerConfigDir+GlobalOptions.FPMakeCompilerConfig;
   FPMakeCompilerOptions.UpdateLocalRepositoryOption;
   FPMakeCompilerOptions.UpdateLocalRepositoryOption;
   if FileExists(S) then
   if FileExists(S) then
     begin
     begin
-      pkgglobals.Log(vlDebug,SLogLoadingFPMakeCompilerConfig,[S]);
+      pkgglobals.Log(llDebug,SLogLoadingFPMakeCompilerConfig,[S]);
       FPMakeCompilerOptions.LoadCompilerFromFile(S);
       FPMakeCompilerOptions.LoadCompilerFromFile(S);
       if FPMakeCompilerOptions.SaveInifileChanges then
       if FPMakeCompilerOptions.SaveInifileChanges then
         FPMakeCompilerOptions.SaveCompilerToFile(S);
         FPMakeCompilerOptions.SaveCompilerToFile(S);
@@ -287,7 +287,7 @@ begin
   else
   else
     Error(SErrMissingCompilerConfig,[S]);
     Error(SErrMissingCompilerConfig,[S]);
   // Log compiler configuration
   // Log compiler configuration
-  FPMakeCompilerOptions.LogValues(vlDebug,'fpmake-building ');
+  FPMakeCompilerOptions.LogValues(llDebug,'fpmake-building ');
 end;
 end;
 
 
 
 
@@ -439,7 +439,7 @@ begin
         FConfigVersion:=ReadInteger(SDefaults,KeyConfigVersion,0);
         FConfigVersion:=ReadInteger(SDefaults,KeyConfigVersion,0);
         if (FConfigVersion<>CurrentConfigVersion) then
         if (FConfigVersion<>CurrentConfigVersion) then
           begin
           begin
-            log(vlDebug,SLogUpgradingConfig,[AFileName]);
+            log(llDebug,SLogUpgradingConfig,[AFileName]);
             FSaveInifileChanges:=true;
             FSaveInifileChanges:=true;
             if FConfigVersion<1 then
             if FConfigVersion<1 then
               begin
               begin
@@ -688,7 +688,7 @@ begin
   // We retrieve the real binary
   // We retrieve the real binary
   if FCompilerVersion='2.2.0' then
   if FCompilerVersion='2.2.0' then
     FCompiler:=GetCompilerInfo(FCompiler,'-PB');
     FCompiler:=GetCompilerInfo(FCompiler,'-PB');
-  log(vlDebug,SLogDetectedCompiler,[FCompiler,FCompilerVersion,MakeTargetString(FCompilerCPU,FCompilerOS)]);
+  log(llDebug,SLogDetectedCompiler,[FCompiler,FCompilerVersion,MakeTargetString(FCompilerCPU,FCompilerOS)]);
 
 
   // Use the same algorithm as the compiler, see options.pas
   // Use the same algorithm as the compiler, see options.pas
   // Except that the prefix is extracted and GlobalInstallDir is set using
   // Except that the prefix is extracted and GlobalInstallDir is set using
@@ -706,12 +706,12 @@ begin
   FGlobalPrefix:=ExpandFileName(FGlobalPrefix);
   FGlobalPrefix:=ExpandFileName(FGlobalPrefix);
 {$endif unix}
 {$endif unix}
 
 
-  log(vlDebug,SLogDetectedPrefix,['global',FGlobalPrefix]);
+  log(llDebug,SLogDetectedPrefix,['global',FGlobalPrefix]);
   // User writable install directory
   // User writable install directory
   if not IsSuperUser then
   if not IsSuperUser then
     begin
     begin
       FLocalPrefix:= '{LocalRepository}';
       FLocalPrefix:= '{LocalRepository}';
-      log(vlDebug,SLogDetectedPrefix,['local',FLocalPrefix]);
+      log(llDebug,SLogDetectedPrefix,['local',FLocalPrefix]);
     end;
     end;
 
 
   fpcdir:=FixPath(GetEnvironmentVariable('FPCDIR'));
   fpcdir:=FixPath(GetEnvironmentVariable('FPCDIR'));
@@ -720,7 +720,7 @@ begin
     {$ifndef Unix}
     {$ifndef Unix}
     fpcdir:=ExpandFileName(fpcdir);
     fpcdir:=ExpandFileName(fpcdir);
     {$endif unix}
     {$endif unix}
-    log(vlDebug,SLogFPCDirEnv,[fpcdir]);
+    log(llDebug,SLogFPCDirEnv,[fpcdir]);
     FGlobalInstallDir:=fpcdir;
     FGlobalInstallDir:=fpcdir;
     end;
     end;
 end;
 end;
@@ -738,7 +738,7 @@ begin
         FConfigVersion:=ReadInteger(SDefaults,KeyConfigVersion,0);
         FConfigVersion:=ReadInteger(SDefaults,KeyConfigVersion,0);
         if (FConfigVersion<>CurrentConfigVersion) then
         if (FConfigVersion<>CurrentConfigVersion) then
           begin
           begin
-            log(vlDebug,SLogUpgradingConfig,[AFileName]);
+            log(llDebug,SLogUpgradingConfig,[AFileName]);
             FSaveInifileChanges:=true;
             FSaveInifileChanges:=true;
             if (FConfigVersion>CurrentConfigVersion) then
             if (FConfigVersion>CurrentConfigVersion) then
               Error(SErrUnsupportedConfigVersion,[AFileName]);
               Error(SErrUnsupportedConfigVersion,[AFileName]);

+ 14 - 14
packages/fppkg/src/pkgrepos.pp

@@ -80,7 +80,7 @@ begin
 
 
   // Repository
   // Repository
   S:=GlobalOptions.LocalMirrorsFile;
   S:=GlobalOptions.LocalMirrorsFile;
-  log(vlDebug,SLogLoadingMirrorsFile,[S]);
+  log(llDebug,SLogLoadingMirrorsFile,[S]);
   if not FileExists(S) then
   if not FileExists(S) then
     exit;
     exit;
   try
   try
@@ -94,7 +94,7 @@ begin
   except
   except
     on E : Exception do
     on E : Exception do
       begin
       begin
-        Log(vlError,E.Message);
+        Log(llError,E.Message);
         Error(SErrCorruptMirrorsFile,[S]);
         Error(SErrCorruptMirrorsFile,[S]);
       end;
       end;
   end;
   end;
@@ -136,7 +136,7 @@ begin
     end;
     end;
   if assigned(M) then
   if assigned(M) then
     begin
     begin
-      log(vlInfo,SLogSelectedMirror,[M.Name]);
+      log(llInfo,SLogSelectedMirror,[M.Name]);
       Result:=M.URL;
       Result:=M.URL;
     end
     end
   else
   else
@@ -205,7 +205,7 @@ procedure FindInstalledPackages(ACompilerOptions:TCompilerOptions;showdups:boole
         result.UnusedVersion:=result.Version;
         result.UnusedVersion:=result.Version;
         // Log packages found in multiple locations (local and global) ?
         // Log packages found in multiple locations (local and global) ?
         if showdups then
         if showdups then
-          log(vlDebug,SDbgPackageMultipleLocations,[result.Name,ExtractFilePath(AFileName)]);
+          log(llDebug,SDbgPackageMultipleLocations,[result.Name,ExtractFilePath(AFileName)]);
       end;
       end;
     result.InstalledLocally:=Local;
     result.InstalledLocally:=Local;
   end;
   end;
@@ -234,7 +234,7 @@ procedure FindInstalledPackages(ACompilerOptions:TCompilerOptions;showdups:boole
     Result:=false;
     Result:=false;
     if FindFirst(IncludeTrailingPathDelimiter(AUnitDir)+AllFiles,faDirectory,SR)=0 then
     if FindFirst(IncludeTrailingPathDelimiter(AUnitDir)+AllFiles,faDirectory,SR)=0 then
       begin
       begin
-        log(vlDebug,SLogFindInstalledPackages,[AUnitDir]);
+        log(llDebug,SLogFindInstalledPackages,[AUnitDir]);
         repeat
         repeat
           if ((SR.Attr and faDirectory)=faDirectory) and (SR.Name<>'.') and (SR.Name<>'..') then
           if ((SR.Attr and faDirectory)=faDirectory) and (SR.Name<>'.') and (SR.Name<>'..') then
             begin
             begin
@@ -279,7 +279,7 @@ end;
 
 
 Procedure AddFPMakeAddIn(APackage: TFPPackage);
 Procedure AddFPMakeAddIn(APackage: TFPPackage);
 begin
 begin
-  log(vlDebug,SLogFoundFPMakeAddin,[APackage.Name]);
+  log(llDebug,SLogFoundFPMakeAddin,[APackage.Name]);
   setlength(FPMKUnitDeps,length(FPMKUnitDeps)+1);
   setlength(FPMKUnitDeps,length(FPMKUnitDeps)+1);
   FPMKUnitDeps[high(FPMKUnitDeps)].package:=APackage.Name;
   FPMKUnitDeps[high(FPMKUnitDeps)].package:=APackage.Name;
   FPMKUnitDeps[high(FPMKUnitDeps)].reqver:=APackage.Version.AsString;
   FPMKUnitDeps[high(FPMKUnitDeps)].reqver:=APackage.Version.AsString;
@@ -308,7 +308,7 @@ begin
             begin
             begin
               if (D.RequireChecksum<>$ffffffff) and (DepPackage.Checksum<>D.RequireChecksum) then
               if (D.RequireChecksum<>$ffffffff) and (DepPackage.Checksum<>D.RequireChecksum) then
                 begin
                 begin
-                  log(vlInfo,SLogPackageChecksumChanged,[APackage.Name,D.PackageName]);
+                  log(llInfo,SLogPackageChecksumChanged,[APackage.Name,D.PackageName]);
                   result:=true;
                   result:=true;
                   if MarkForReInstall then
                   if MarkForReInstall then
                     begin
                     begin
@@ -337,7 +337,7 @@ begin
                 end;
                 end;
             end
             end
           else
           else
-            log(vlDebug,SDbgObsoleteDependency,[D.PackageName]);
+            log(llDebug,SDbgObsoleteDependency,[D.PackageName]);
         end;
         end;
     end;
     end;
 end;
 end;
@@ -389,17 +389,17 @@ begin
           ReqVer:=TFPVersion.Create;
           ReqVer:=TFPVersion.Create;
           try
           try
             ReqVer.AsString:=FPMKUnitDeps[i].ReqVer;
             ReqVer.AsString:=FPMKUnitDeps[i].ReqVer;
-            log(vlDebug,SLogFPMKUnitDepVersion,[P.Name,ReqVer.AsString,P.Version.AsString,AvailVerStr]);
+            log(llDebug,SLogFPMKUnitDepVersion,[P.Name,ReqVer.AsString,P.Version.AsString,AvailVerStr]);
             if ReqVer.CompareVersion(P.Version)<=0 then
             if ReqVer.CompareVersion(P.Version)<=0 then
               FPMKUnitDeps[i].available:=true
               FPMKUnitDeps[i].available:=true
             else
             else
-              log(vlDebug,SLogFPMKUnitDepTooOld,[FPMKUnitDeps[i].package]);
+              log(llDebug,SLogFPMKUnitDepTooOld,[FPMKUnitDeps[i].package]);
           finally
           finally
             ReqVer.Free;
             ReqVer.Free;
           end;
           end;
         end
         end
       else
       else
-        log(vlDebug,SLogFPMKUnitDepTooOld,[FPMKUnitDeps[i].package]);
+        log(llDebug,SLogFPMKUnitDepTooOld,[FPMKUnitDeps[i].package]);
     end;
     end;
 end;
 end;
 
 
@@ -418,7 +418,7 @@ begin
   AvailableRepository:=GetDefaultRepositoryClass.Create(Nil);
   AvailableRepository:=GetDefaultRepositoryClass.Create(Nil);
   // Repository
   // Repository
   S:=GlobalOptions.LocalPackagesFile;
   S:=GlobalOptions.LocalPackagesFile;
-  log(vlDebug,SLogLoadingPackagesFile,[S]);
+  log(llDebug,SLogLoadingPackagesFile,[S]);
   if not FileExists(S) then
   if not FileExists(S) then
     exit;
     exit;
   try
   try
@@ -432,7 +432,7 @@ begin
   except
   except
     on E : Exception do
     on E : Exception do
       begin
       begin
-        Log(vlError,E.Message);
+        Log(llError,E.Message);
         Error(SErrCorruptPackagesFile,[S]);
         Error(SErrCorruptPackagesFile,[S]);
       end;
       end;
   end;
   end;
@@ -629,7 +629,7 @@ begin
         { Unzip manifest.xml }
         { Unzip manifest.xml }
         With TUnZipper.Create do
         With TUnZipper.Create do
           try
           try
-            log(vlCommands,SLogUnzippping,[ArchiveSL[i]]);
+            log(llCommands,SLogUnzippping,[ArchiveSL[i]]);
             OutputPath:='.';
             OutputPath:='.';
             UnZipFiles(ArchiveSL[i],ManifestSL);
             UnZipFiles(ArchiveSL[i],ManifestSL);
           Finally
           Finally

+ 5 - 5
utils/fppkg/fppkg.pp

@@ -57,7 +57,7 @@ begin
   for i:=1 to ParamCount do
   for i:=1 to ParamCount do
     if (ParamStr(i)='-d') or (ParamStr(i)='--debug') then
     if (ParamStr(i)='-d') or (ParamStr(i)='--debug') then
       begin
       begin
-        LogLevels:=AllLogLevels+[vlDebug];
+        LogLevels:=AllLogLevels+[llDebug];
         break;
         break;
       end;
       end;
   // First try config file from command line
   // First try config file from command line
@@ -198,7 +198,7 @@ begin
       else if CheckOption(I,'v','verbose') then
       else if CheckOption(I,'v','verbose') then
         LogLevels:=AllLogLevels
         LogLevels:=AllLogLevels
       else if CheckOption(I,'d','debug') then
       else if CheckOption(I,'d','debug') then
-        LogLevels:=AllLogLevels+[vlDebug]
+        LogLevels:=AllLogLevels+[llDebug]
       else if CheckOption(I,'g','global') then
       else if CheckOption(I,'g','global') then
         GlobalOptions.InstallGlobal:=true
         GlobalOptions.InstallGlobal:=true
       else if CheckOption(I,'r','recovery') then
       else if CheckOption(I,'r','recovery') then
@@ -313,7 +313,7 @@ begin
           pkghandler.ExecuteAction('','update');
           pkghandler.ExecuteAction('','update');
         except
         except
           on E: Exception do
           on E: Exception do
-            pkgglobals.Log(vlWarning,E.Message);
+            pkgglobals.Log(llWarning,E.Message);
         end;
         end;
       end;
       end;
     LoadLocalAvailableRepository;
     LoadLocalAvailableRepository;
@@ -336,7 +336,7 @@ begin
         (ParaAction='install') or
         (ParaAction='install') or
         (ParaAction='archive')) then
         (ParaAction='archive')) then
       begin
       begin
-        pkgglobals.Log(vlDebug,SLogCheckBrokenDependenvies);
+        pkgglobals.Log(llDebug,SLogCheckBrokenDependenvies);
         SL:=TStringList.Create;
         SL:=TStringList.Create;
         if FindBrokenPackages(SL) then
         if FindBrokenPackages(SL) then
           Error(SErrBrokenPackagesFound);
           Error(SErrBrokenPackagesFound);
@@ -361,7 +361,7 @@ begin
               end
               end
             else
             else
               begin
               begin
-                pkgglobals.Log(vlDebug,SLogCommandLineAction,['['+ParaPackages[i]+']',ParaAction]);
+                pkgglobals.Log(llDebug,SLogCommandLineAction,['['+ParaPackages[i]+']',ParaAction]);
                 pkghandler.ExecuteAction(ParaPackages[i],ParaAction);
                 pkghandler.ExecuteAction(ParaPackages[i],ParaAction);
               end;
               end;
           end;
           end;