Improve logging methods in SPlugin.java