www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - What is the best way to include this file from the runtime libraries?

reply ulyssesdwolfe <ulyssesdwolfe gmail.com> writes:
Hi
I am trying to hook up an app to log to /var/log through the 
rsyslog daemon and
it seems I need this file
https://github.com/dlang/druntime/blob/master/src/core/sys/posix/syslog.d
but I am not sure what the correct way to include files from the 
runtime libs is. Right now I am just doing

import core.sys.posix.syslog;


and that works but I was hoping to get clarified on what is the 
best method for this is?

ty
Jun 10
parent reply rikki cattermole <rikki cattermole.co.nz> writes:
On 10/06/2017 11:06 AM, ulyssesdwolfe wrote:
 Hi
 I am trying to hook up an app to log to /var/log through the rsyslog 
 daemon and
 it seems I need this file
 https://github.com/dlang/druntime/blob/master/src/core/sys/posix/syslog.d
 but I am not sure what the correct way to include files from the runtime 
 libs is. Right now I am just doing
 
 import core.sys.posix.syslog;
You found it.
Jun 10
parent ulyssesdwolfe <ulyssesdwolfe gmail.com> writes:
On Saturday, 10 June 2017 at 10:07:54 UTC, rikki cattermole wrote:


 You found it.
Ok Thanks :)
Jun 10