Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Anylogger to file

I like to log to a file with anylogger, but there is no help/example on this.
It seems a very good logger. But i need to log to file...

Comments

  • 2 Comments sorted by Votes Date Added
  • Short documentation can be found here:

    https://wiki.lmd.de/index.php/LMD_LogTools_tutorial

    Generally speaking, you need to create new session specifying required transfer name in a config string, as shown in mentioned documentation. 

    LMDLogFileTransport.pas unit provides a file transfer support. You should include it into your project. The transfer name is "lmd_file_log". As can be found in source code, the following transfer parameters are supported:

    function TLMDLogFileTransport.GetParameters: string;
    begin
      Result := inherited GetParameters;
      Result := Result + 'FileName=' + FFileName + #13#10;
      Result := Result + 'KeepOpen=' + IntToStr(Integer(FKeepOpen)) + #13#10;
      Result := Result + 'Appended=' + IntToStr(Integer(FAppended)) + #13#10;
      Result := Result + 'Backup=' + IntToStr(Integer(FBackup)) + #13#10;
    end;


Sign In or Register to comment.