Class APPLEContextLoggingFunctions



  • public class APPLEContextLoggingFunctions
    extends java.lang.Object
    Native bindings to the APPLE_ContextLoggingFunctions extension.

    Provides convenience functions that are intended to be used as the pfn_notify parameter to CreateContext.

    Note that if you pass NULL to the CreateContext pfn_notify parameter, you can also use these by setting the CL_LOG_ERRORS environment variable to one of stdout, stderr, or console. Pass your own do-nothing context logging function to disable the CL_LOG_ERRORS override.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void clLogMessagesToStderrAPPLE(java.nio.ByteBuffer errstr, java.nio.ByteBuffer private_info, long cb, java.nio.ByteBuffer user_data)
      Forwards on all log messages to the standard error stream.
      static void clLogMessagesToStdoutAPPLE(java.nio.ByteBuffer errstr, java.nio.ByteBuffer private_info, long cb, java.nio.ByteBuffer user_data)
      Forwards on all log messages to the standard output stream.
      static void clLogMessagesToSystemLogAPPLE(java.nio.ByteBuffer errstr, java.nio.ByteBuffer private_info, long cb, java.nio.ByteBuffer user_data)
      Forwards on all log messages to the Apple System Logger.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • clLogMessagesToSystemLogAPPLE

        public static void clLogMessagesToSystemLogAPPLE(java.nio.ByteBuffer errstr,
                                                         java.nio.ByteBuffer private_info,
                                                         long cb,
                                                         java.nio.ByteBuffer user_data)
        Forwards on all log messages to the Apple System Logger.
        Parameters:
        errstr -
        private_info -
        cb -
        user_data -
      • clLogMessagesToStdoutAPPLE

        public static void clLogMessagesToStdoutAPPLE(java.nio.ByteBuffer errstr,
                                                      java.nio.ByteBuffer private_info,
                                                      long cb,
                                                      java.nio.ByteBuffer user_data)
        Forwards on all log messages to the standard output stream.
        Parameters:
        errstr -
        private_info -
        cb -
        user_data -
      • clLogMessagesToStderrAPPLE

        public static void clLogMessagesToStderrAPPLE(java.nio.ByteBuffer errstr,
                                                      java.nio.ByteBuffer private_info,
                                                      long cb,
                                                      java.nio.ByteBuffer user_data)
        Forwards on all log messages to the standard error stream.
        Parameters:
        errstr -
        private_info -
        cb -
        user_data -