Syslog package

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Syslog package

Schwab,Wilhelm K
Göran,

I found your Syslog package, and was quick to lean toward the FFI form largely because when combined with Gnome's log file viewer and a filter, it will hopefully be similar to OutputDebugString + DebugView on Windows.  I had to change the call to

syslog: severity message: aString
        "private use
        void  syslog(int, const char *, ...)"
        <cdecl: void 'syslog' ( long char* ) module: '/lib/libc.so.6'>
        ^self externalCallFailed

You mentioned that your version might work only on your machine.  Is there a correct way to do this that will be independent of the Linux distribution or libc version?


Bill


Reply | Threaded
Open this post in threaded view
|

Re: Syslog package

Göran Krampe
Hi!

On 10/20/2010 01:15 AM, Schwab,Wilhelm K wrote:

> Göran,
>
> I found your Syslog package, and was quick to lean toward the FFI form largely because when combined with Gnome's log file viewer and a filter, it will hopefully be similar to OutputDebugString + DebugView on Windows.  I had to change the call to
>
> syslog: severity message: aString
> "private use
> void  syslog(int, const char *, ...)"
> <cdecl: void 'syslog' ( long char* ) module: '/lib/libc.so.6'>
> ^self externalCallFailed
>
> You mentioned that your version might work only on your machine.  Is there a correct way to do this that will be independent of the Linux distribution or libc version?
>
>
> Bill

Ehrm, I presume this message was directed to me? Or some other "Göran"?
I guess you are referring to SimpleLog - although, I can't for my life
recall the above FFI-thing (my memory sucks though so who knows).

regards, Göran