allow setting log levels for js sdk