In package com.caseyjbrooks.clog

public abstract class IClog extends Object

Constructors

public IClog()
Parameters:
  • No parameters

Methods

public abstract int loggerInternal(String logger, String message, Throwable throwable, Object args)
Parameters:
  • String logger
  • String message
  • Throwable throwable
  • Object args
public int logger(String logger, Throwable throwable)

Log a Throwable to a generic logger. Will print the stack trace of the throwable as the log message, and use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • String logger

    the key of the logger to use

  • Throwable throwable

    the throwable to log

public int logger(String logger, String message, Object args)

Log a formatted message to a generic logger. Will use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • String logger

    the key of the logger to use

  • String message

    the message to log. Should be marked up with your chosen formatter's markup, with objects passed in as varargs

  • Object args

    (optional) the arguments to pass to the formatter

public int logger(String logger, String message, Throwable throwable, Object args)

Log a formatted message and a Throwable to a generic logger. Will use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • String logger

    the key of the logger to use

  • String message

    the message to log. Should be marked up with your chosen formatter's markup, with objects passed in as varargs

  • Throwable throwable

    the throwable to log

  • Object args

    (optional) the arguments to pass to the formatter

public int log(Throwable throwable)

Log a Throwable to the 'debug' logger. Will print the stack trace of the throwable as the log message, and use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • Throwable throwable

    the throwable to log

public int log(String message, Object args)

Log a formatted message to the 'debug' logger. Will use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • String message

    the message to log. Should be marked up with your chosen formatter's markup, with objects passed in as varargs

  • Object args

    (optional) the arguments to pass to the formatter

public int log(String message, Throwable throwable, Object args)

Log a formatted message and a Throwable to the 'debug' logger. Will use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • String message

    the message to log. Should be marked up with your chosen formatter's markup, with objects passed in as varargs

  • Throwable throwable

    the throwable to log

  • Object args

    (optional) the arguments to pass to the formatter

public int v(Throwable throwable)

Log a Throwable to the 'debug' logger. Will print the stack trace of the throwable as the log message, and use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • Throwable throwable

    the throwable to log

public int v(String message, Object args)

Log a formatted message to the 'debug' logger. Will use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • String message

    the message to log. Should be marked up with your chosen formatter's markup, with objects passed in as varargs

  • Object args

    (optional) the arguments to pass to the formatter

public int v(String message, Throwable throwable, Object args)

Log a formatted message and a Throwable to the 'debug' logger. Will use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • String message

    the message to log. Should be marked up with your chosen formatter's markup, with objects passed in as varargs

  • Throwable throwable

    the throwable to log

  • Object args

    (optional) the arguments to pass to the formatter

public int d(Throwable throwable)

Log a Throwable to the 'debug' logger. Will print the stack trace of the throwable as the log message, and use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • Throwable throwable

    the throwable to log

public int d(String message, Object args)

Log a formatted message to the 'debug' logger. Will use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • String message

    the message to log. Should be marked up with your chosen formatter's markup, with objects passed in as varargs

  • Object args

    (optional) the arguments to pass to the formatter

public int d(String message, Throwable throwable, Object args)

Log a formatted message and a Throwable to the 'debug' logger. Will use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • String message

    the message to log. Should be marked up with your chosen formatter's markup, with objects passed in as varargs

  • Throwable throwable

    the throwable to log

  • Object args

    (optional) the arguments to pass to the formatter

public int i(Throwable throwable)

Log a Throwable to the 'debug' logger. Will print the stack trace of the throwable as the log message, and use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • Throwable throwable

    the throwable to log

public int i(String message, Object args)

Log a formatted message to the 'debug' logger. Will use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • String message

    the message to log. Should be marked up with your chosen formatter's markup, with objects passed in as varargs

  • Object args

    (optional) the arguments to pass to the formatter

public int i(String message, Throwable throwable, Object args)

Log a formatted message and a Throwable to the 'debug' logger. Will use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • String message

    the message to log. Should be marked up with your chosen formatter's markup, with objects passed in as varargs

  • Throwable throwable

    the throwable to log

  • Object args

    (optional) the arguments to pass to the formatter

public int w(Throwable throwable)

Log a Throwable to the 'debug' logger. Will print the stack trace of the throwable as the log message, and use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • Throwable throwable

    the throwable to log

public int w(String message, Object args)

Log a formatted message to the 'debug' logger. Will use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • String message

    the message to log. Should be marked up with your chosen formatter's markup, with objects passed in as varargs

  • Object args

    (optional) the arguments to pass to the formatter

public int w(String message, Throwable throwable, Object args)

Log a formatted message and a Throwable to the 'debug' logger. Will use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • String message

    the message to log. Should be marked up with your chosen formatter's markup, with objects passed in as varargs

  • Throwable throwable

    the throwable to log

  • Object args

    (optional) the arguments to pass to the formatter

public int e(Throwable throwable)

Log a Throwable to the 'debug' logger. Will print the stack trace of the throwable as the log message, and use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • Throwable throwable

    the throwable to log

public int e(String message, Object args)

Log a formatted message to the 'debug' logger. Will use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • String message

    the message to log. Should be marked up with your chosen formatter's markup, with objects passed in as varargs

  • Object args

    (optional) the arguments to pass to the formatter

public int e(String message, Throwable throwable, Object args)

Log a formatted message and a Throwable to the 'debug' logger. Will use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • String message

    the message to log. Should be marked up with your chosen formatter's markup, with objects passed in as varargs

  • Throwable throwable

    the throwable to log

  • Object args

    (optional) the arguments to pass to the formatter

public int wtf(Throwable throwable)

Log a Throwable to the 'debug' logger. Will print the stack trace of the throwable as the log message, and use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • Throwable throwable

    the throwable to log

public int wtf(String message, Object args)

Log a formatted message to the 'debug' logger. Will use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • String message

    the message to log. Should be marked up with your chosen formatter's markup, with objects passed in as varargs

  • Object args

    (optional) the arguments to pass to the formatter

public int wtf(String message, Throwable throwable, Object args)

Log a formatted message and a Throwable to the 'debug' logger. Will use the default tag, which if not specified will be the calling class's simple name.

Parameters:
  • String message

    the message to log. Should be marked up with your chosen formatter's markup, with objects passed in as varargs

  • Throwable throwable

    the throwable to log

  • Object args

    (optional) the arguments to pass to the formatter