js support for custom logs