Solitons and conservation laws of Klein–Gordon equation with power law and log law nonlinearities