most likely by adding another appender to the log4javascript library, to wrap up the API with the parent system.