Package com.flagsmith
Class FlagsmithLogger
java.lang.Object
com.flagsmith.FlagsmithLogger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPrints error into the log.voidhttpError(okhttp3.Request request, IOException io, boolean doReThrow) Based on configuration prints error into log or throws an exception.voidhttpError(okhttp3.Request request, okhttp3.Response response, boolean doThrow) Based on configuration prints error into log or throws an exception.voidPrints info into the log.voidsetLogger(org.slf4j.Logger logger) voidsetLogger(org.slf4j.Logger logger, FlagsmithLoggerLevel level)
-
Constructor Details
-
FlagsmithLogger
public FlagsmithLogger()
-
-
Method Details
-
setLogger
-
setLogger
public void setLogger(org.slf4j.Logger logger) -
httpError
public void httpError(okhttp3.Request request, okhttp3.Response response, boolean doThrow) Based on configuration prints error into log or throws an exception.- Parameters:
request- a Requestresponse- a ResponsedoThrow- a boolean whether to throw exception
-
httpError
Based on configuration prints error into log or throws an exception.- Parameters:
request- a Requestio- an IOExceptiondoReThrow- a boolean whether to throw exception
-
error
Prints error into the log.- Parameters:
var1- a param to printvar2- a param to print
-
info
Prints info into the log.- Parameters:
var1- a param to printvar2- a param to print
-