On Thu, Apr 16, 2020 at 8:16 PM Dean Schulze wrote:
>
> I have a C program with a syslog command like this:
>
> syslog(LOG_INFO, "slurmctrld: initializing resources");
>
> It outputs the first line below in the syslog. This C code executes a golang
> binary that also does syslog commands:
>
>
You can get the PID with https://golang.org/pkg/os/#Getpid and use that
you construct a string to hand in as tag to syslog.New.
On Thu, 2020-04-16 at 20:16 -0700, Dean Schulze wrote:
> I have a C program with a syslog command like this:
>
> syslog(LOG_INFO, "slurmctrld: initializing resources");
I have a C program with a syslog command like this:
syslog(LOG_INFO, "slurmctrld: initializing resources");
It outputs the first line below in the syslog. This C code executes a
golang binary that also does syslog commands:
Syslogger, err = syslog.New(syslog.LOG_INFO, "slurmctld")