support log level and two print method