Package org.drinkless.tdlib
Class Log
- java.lang.Object
-
- org.drinkless.tdlib.Log
-
public final class Log extends Object
Class used for managing internal TDLib logging. Use TdApi.*Log* methods instead.
-
-
Constructor Summary
Constructors Constructor Description Log()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleansetFilePath(String filePath)Deprecated.As of TDLib 1.4.0 in favor ofTdApi.SetLogStream, to be removed in the future.static voidsetMaxFileSize(long maxFileSize)Deprecated.As of TDLib 1.4.0 in favor ofTdApi.SetLogStream, to be removed in the future.static voidsetVerbosityLevel(int verbosityLevel)Deprecated.As of TDLib 1.4.0 in favor ofTdApi.SetLogVerbosityLevel, to be removed in the future.
-
-
-
Method Detail
-
setVerbosityLevel
@Deprecated public static void setVerbosityLevel(int verbosityLevel)
Deprecated.As of TDLib 1.4.0 in favor ofTdApi.SetLogVerbosityLevel, to be removed in the future.Changes TDLib log verbosity.- Parameters:
verbosityLevel- New value of log verbosity level. Must be non-negative. Value 0 corresponds to fatal errors, value 1 corresponds to java.util.logging.Level.SEVERE, value 2 corresponds to java.util.logging.Level.WARNING, value 3 corresponds to java.util.logging.Level.INFO, value 4 corresponds to java.util.logging.Level.FINE, value 5 corresponds to java.util.logging.Level.FINER, value greater than 5 can be used to enable even more logging. Default value of the log verbosity level is 5.
-
setFilePath
@Deprecated public static boolean setFilePath(String filePath)
Deprecated.As of TDLib 1.4.0 in favor ofTdApi.SetLogStream, to be removed in the future.Sets file path for writing TDLib internal log. By default TDLib writes logs to the System.err. Use this method to write the log to a file instead.- Parameters:
filePath- Path to a file for writing TDLib internal log. Use an empty path to switch back to logging to the System.err.- Returns:
- whether opening the log file succeeded.
-
setMaxFileSize
@Deprecated public static void setMaxFileSize(long maxFileSize)
Deprecated.As of TDLib 1.4.0 in favor ofTdApi.SetLogStream, to be removed in the future.Changes the maximum size of TDLib log file.- Parameters:
maxFileSize- The maximum size of the file to where the internal TDLib log is written before the file will be auto-rotated. Must be positive. Defaults to 10 MB.
-
-