On 04/02/2023 6:55 AM, Alexander Zhirov wrote:
On Friday, 3 February 2023 at 16:00:55 UTC, Richard (Rikki) Andrew Cattermole wrote:
Yes syslog is not available on Windows as that is a Posix API. All of your calls to syslog should be guarded by a version for Posix.

Is there an analogue for Windows? And is it possible to implement it with the similarity of directives, as in C?

The analogue is the Windows Event Log and its not 1:1.

Here is a starting point that I myself have used in the past:

https://github.com/php/php-src/blob/master/win32/wsyslog.c
  • Logging logs in ... Alexander Zhirov via Digitalmars-d-learn
    • Re: Logging... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: Log... Alexander Zhirov via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
          • ... Alexander Zhirov via Digitalmars-d-learn
            • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
              • ... Alexander Zhirov via Digitalmars-d-learn
              • ... Alexander Zhirov via Digitalmars-d-learn
                • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
                • ... Alexander Zhirov via Digitalmars-d-learn
            • ... Kagamin via Digitalmars-d-learn

Reply via email to