Skip to content

Add support for Linux in Log.output #11

Description

@oboobortot

Suggestion for improvement of https://github.com/freeonterminate/delphi/blob/master/FMXLog/FMX.Log.pas method Log.output

If you would like to add support for Linux as well you can use the following

  1. Add those units to interface uses clause
uses
  ...
  {$if defined(POSIX)}
  Posix.Unistd,
  Posix.Pthread,
  {$endif}
  ...;
  1. Add those lines in the implementation of Log.output class procedure of the class Log in FMX.Log.pas
  {$if defined(LINUX)}
  __write(stderr, OrnamentedText, Length(OrnamentedText));
  __write(stderr, EOL, Length(EOL));
  {$endif}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions