David Hoyle

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • David Hoyle
    Participant

      I have this with my Excel COM-Addins. The below might help you (i.e. you need to use TCP/IP).

      https://www.davidghoyle.co.uk/WordPress/?p=2237

       

      in reply to: Search through lots of log files #1663
      David Hoyle
      Participant

        Ray,

        That would be a very useful tool as I create CSL log files for different days and this would make it very easy to find messages within a whole collection of them.

        regards

        Dave.

        David Hoyle
        Participant

          I don’t know what’s happened to my first post but what account is your service running under and does that account have read/write access to the location you want to create the .csl file?

          David Hoyle
          Participant

            Warren,

            I don’t know if this will help you but I use the following in a desktop application for logging to a file and the live view (if the dispatcher is running – for TCP/IP this needs to be manually started if I remember as it will not be started automatically under TCP/IP)

            Const
              (** A constant for the log file extension. **)
              strLogExt = '.csl';
              (** A constant for the AppData environment variable. **)
              strAppDataEnviroVar = 'AppData';
              (** A constant for the Seasons Fall subdirectory under AppData. **)
              strSeasonFallDir = '\Season''s Fall\XER Tools\';
              (** ISO Date format for the CSL files. **)
              strFileDateFmt = ' yyyy-mm-dd';
            Var
              (** A local private variable for the FileDestination CodeSiteLogger. **)
              FileDest: TCodeSiteDestination;
            (** This section creates a file based CodeSite Logger for the applciation in the same directory. **)
            Initialization
              FileDest := TCodeSiteDestination.Create(Nil);
              FileDest.LogFile.Active := True;
              FileDest.LogFile.FilePath := System.SysUtils.GetEnvironmentVariable(strAppDataEnviroVar) +
                strSeasonFallDir;
              FileDest.LogFile.FileName := ChangeFileExt(ExtractFileName(ParamStr(0)), 
                FormatDateTime(strFileDateFmt, Now()) + strLogExt);
              FileDest.Viewer.Active := True;
              CodeSite.Destination := FileDest;
              CodeSiteLogging.CodeSiteManager.ConnectUsingTcp();
            (** Frees the file based logger. **)
            Finalization
              FileDest.Free;
            End.
            • This reply was modified 5 years, 4 months ago by David Hoyle.
            in reply to: Codesite Express and RS 10.3 #646
            David Hoyle
            Participant

              Keith,

              I’m not aware of an specific instructions but there are 2 things to fix. The first is your IDE library path and the second the CodeSite IDE plug-in. The best option is to run the IDE as per the account you logged in as to install the software and then go to the IDE Options | Delphi | Library and note down the CS paths that were added and secondly for the plug-in go to the Installed Components and look for the location of the CS IDE plug-in package. Then replicate them in your user acccount IDE.

              Dave.

              in reply to: Codesite Express and RS 10.3 #644
              David Hoyle
              Participant

                Keith,
                Do you run as a limited user but install as an Administrator. If so, the paths for the DCUs and IDE plug-ins will have been installed under the Administrator’s profile not yours and you will have to manually add them your RAD Studio.

                This happens for me as I run as a limited user and not an Administrator.

                Dave.

              Viewing 6 posts - 1 through 6 (of 6 total)