Forum Discussion

ssmith-nova's avatar
ssmith-nova
New Contributor III
2 years ago

Smart Integration Function logging

Is there a way to log messages to the Error log within a Smart Integration Function that is running on the Local Gateway?  I notice when a new SIF is created, none of the OneStream libraries are available.  

I did find an example where the OneStreamGatewayService library was included.  Is there any documentation on this library?

Thanks,

Scott

  • The current documentation is:

    The library you mention is not covered in detail, although it is referenced in the guide. I guess intellisense might help you there. I can't see anything pre-built on pulling log messages to OneStream, although you could do it manually with this sort of logic:

    1. write a SIC function that looks at the local logs for events of a certain type and returns them
    2. write an Extender to invoke that function and write results to the OneStream log
    3. trigger the Extender every few minutes with a Data Management job.

    If it looks like a lot of manual work for something that should be built-in - it might well be 😅 feel free to post a request for the feature in IdeaStream.

  • JackLacava's avatar
    JackLacava
    Honored Contributor

    The current documentation is:

    The library you mention is not covered in detail, although it is referenced in the guide. I guess intellisense might help you there. I can't see anything pre-built on pulling log messages to OneStream, although you could do it manually with this sort of logic:

    1. write a SIC function that looks at the local logs for events of a certain type and returns them
    2. write an Extender to invoke that function and write results to the OneStream log
    3. trigger the Extender every few minutes with a Data Management job.

    If it looks like a lot of manual work for something that should be built-in - it might well be 😅 feel free to post a request for the feature in IdeaStream.