Tabnine Logo
Logger.w
Code IndexAdd Tabnine to your IDE (free)

How to use
w
method
in
com.elvishew.xlog.Logger

Best Java code snippets using com.elvishew.xlog.Logger.w (Showing top 15 results out of 315)

origin: elvishew/xLog

/**
 * Log a message with level {@link LogLevel#WARN}.
 *
 * @param msg the message to log
 */
public static void w(String msg) {
 assertInitialization();
 sLogger.w(msg);
}
origin: elvishew/xLog

/**
 * Convenience of {@link #build()} and {@link Logger#w(Object)}.
 *
 * @since 1.1.0
 */
public void w(Object object) {
 build().w(object);
}
origin: elvishew/xLog

/**
 * Convenience of {@link #build()} and {@link Logger#w(String, Throwable)}.
 */
public void w(String msg, Throwable tr) {
 build().w(msg, tr);
}
origin: elvishew/xLog

/**
 * Convenience of {@link #build()} and {@link Logger#w(Object[])}.
 *
 * @since 1.4.0
 */
public void w(Object[] array) {
 build().w(array);
}
origin: elvishew/xLog

/**
 * Convenience of {@link #build()} and {@link Logger#w(String)}.
 */
public void w(String msg) {
 build().w(msg);
}
origin: elvishew/xLog

/**
 * Log an object with level {@link LogLevel#WARN}.
 *
 * @param object the object to log
 * @see LogConfiguration.Builder#addObjectFormatter(Class, ObjectFormatter)
 * @since 1.1.0
 */
public static void w(Object object) {
 assertInitialization();
 sLogger.w(object);
}
origin: elvishew/xLog

/**
 * Log a message with level {@link LogLevel#WARN}.
 *
 * @param format the format of the message to log
 * @param args   the arguments of the message to log
 */
public static void w(String format, Object... args) {
 assertInitialization();
 sLogger.w(format, args);
}
origin: elvishew/xLog

/**
 * Log a message and a throwable with level {@link LogLevel#WARN}.
 *
 * @param msg the message to log
 * @param tr  the throwable to be log
 */
public static void w(String msg, Throwable tr) {
 assertInitialization();
 sLogger.w(msg, tr);
}
origin: elvishew/xLog

/**
 * Convenience of {@link #build()} and {@link Logger#w(String, Object...)}.
 */
public void w(String format, Object... args) {
 build().w(format, args);
}
origin: elvishew/xLog

/**
 * Log an array with level {@link LogLevel#WARN}.
 *
 * @param array the array to log
 */
public static void w(Object[] array) {
 assertInitialization();
 sLogger.w(array);
}
origin: elvishew/xLog

/**
 * @deprecated compatible with {@link android.util.Log#w(String, Throwable)}
 */
public static void w(String tag, Throwable tr) {
 tag(tag).build().w("", tr);
}
origin: elvishew/xLog

/**
 * @deprecated compatible with {@link android.util.Log#w(String, String)}
 */
public static void w(String tag, String msg) {
 tag(tag).build().w(msg);
}
origin: elvishew/xLog

/**
 * @deprecated compatible with {@link android.util.Log#w(String, String, Throwable)}
 */
public static void w(String tag, String msg, Throwable tr) {
 tag(tag).build().w(msg, tr);
}
origin: elvishew/xLog

 break;
case LogLevel.WARN:
 logger.w(MESSAGE);
 break;
case LogLevel.ERROR:
origin: elvishew/xLog

AssertUtil.assertNoLog(logsContainer);
logsContainer.clear();
logger.w(MESSAGE);
assertLog(WARN, DEFAULT_TAG, MESSAGE);
logsContainer.clear();
logger.d(MESSAGE);
logger.i(MESSAGE);
logger.w(MESSAGE);
logger.e(MESSAGE);
logger.log(7, MESSAGE);
assertLog(INFO, DEFAULT_TAG, MESSAGE);
logsContainer.clear();
logger.w(MESSAGE);
assertLog(WARN, DEFAULT_TAG, MESSAGE);
logsContainer.clear();
com.elvishew.xlogLoggerw

Javadoc

Log an object with level LogLevel#WARN.

Popular methods of Logger

  • d
    Log an array with level LogLevel#DEBUG.
  • e
    Log an array with level LogLevel#ERROR.
  • i
    Log an array with level LogLevel#INFO.
  • v
    Log an array with level LogLevel#VERBOSE.
  • log
    Log an array with specific log level.
  • <init>
    Construct a logger using builder.
  • formatArgs
    Format a string with arguments.
  • json
    Log a JSON string, with level LogLevel#DEBUG by default.
  • println
    Print an array in a new line.
  • printlnInternal
    Print a log in a new line internally.
  • xml
    Log a XML string, with level LogLevel#DEBUG by default.
  • xml

Popular in Java

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • JList (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now