DEPRECATED Use Weblogic Logging infrastructure - see http://e-docs.bea.com/wls/docs61/i18n/index.html

# com.beasys.commerce.util
DefaultLog Class

public class DefaultLog
extends `Object`
implements `com.beasys.commerce.util.Log`

Default log implementation, it goes to System.err.

Hierarchy
  `Object`
  `DefaultLog`

All Implemented Interfaces
  `com.beasys.commerce.util.Log`

Direct Known Subclasses
  `com.beasys.commerce.util.NonCatalogLog`

## Field Summary

`protected static final `String`` | `COMMA` String
`protected static final `String`` | `DEFAULT_APP_NAME` String
`protected int` | `minimumLevel` int
`protected static final `String`` | `QUOTE` String
`protected boolean` | `showDebug` boolean
`protected boolean` | `showDeprecated` boolean
`protected static final `String`` | `SPACE` String

## Constructor Summary

DefaultLog() Default constructor.

## Method Summary

`protected `String`` | `assembleMsg`(int aLevel, `String` anAppName, `String` aMsg) Assemble the message into the expected output.
`public void` | `debug`(`String` aMsg) Debug.
`public void` | `deprecated`(`String` aMsg) Deprecated.
`public int` | `getMinimumLevel`() Get minimum level.
`public boolean` | `getShowDebug`() Get show debug.
`public boolean` | `getShowDeprecated`() Get show deprecated.
`public void` | `info`(`String` aMsg) Write to the logs, with extra information added.
`public void` | `info`(`String` aMsg, `Throwable` anException) Write to the logs, with extra information added.
`public void` | `log`(int aLevel, `String` aMsg) Write to the weblogic logs, with extra information added.
`public void` | `log`(int aLevel, `String` aMsg, `Throwable` anException) Write to the weblogic logs, with extra information added.
`public void` | `log`(int aLevel, `String` appName, `String` aMsg) Write to the logs, with extra information added.
`public void` | `log`(int aLevel, `String` appName, `String` aMsg, `Throwable` anException) Write to the logs, with extra information added.
`protected void` | `logOutput`(int aLevel, `String` anAppName, `String` aMsg, `Throwable` anException) Log the output.
`public void` | `setMinimumLevel`(int aLevel) Set minimum level.
`public void` | `setShowDebug`(boolean aBool) Set show debug.
`public void` | `setShowDeprecated`(boolean aBool) Set show deprecated.
`protected `String`` | `textForLevel`(int aLevel) Text for level.

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `com.beasys.commerce.util.`com.beasys.commerce.util.Log``
``debug`, `deprecated`, `getMinimumLevel`, `getShowDebug`, `getShowDeprecated`, `info`, `info`, `log`, `log`, `log`, `log`, `setMinimumLevel`, `setShowDebug`, `setShowDeprecated``

## Field Detail

### COMMA

    protected static final String COMMA

### DEFAULT_APP_NAME

    protected static final String DEFAULT_APP_NAME

### minimumLevel

    protected int minimumLevel

### QUOTE

    protected static final String QUOTE

### showDebug

    protected boolean showDebug

### showDeprecated

    protected boolean showDeprecated

### SPACE

    protected static final String SPACE

## Constructor Detail

### DefaultLog

    public DefaultLog()

  Default constructor.

## Method Detail

### assembleMsg(int, String, String) Method

    protected String assembleMsg(int aLevel,
                                 String anAppName,
                                 String aMsg)

Assemble the message into the expected output.

#### Returns

`String`

### debug(String) Method

    public void debug(String aMsg)

Debug. Convenience method for LOG_DEBUG.

### deprecated(String) Method

    public void deprecated(String aMsg)

Deprecated.

### getMinimumLevel() Method

    public int getMinimumLevel()

Get minimum level.

#### Returns

`int`

### getShowDebug() Method

    public boolean getShowDebug()

Get show debug.

#### Returns

`boolean`

### getShowDeprecated() Method

    public boolean getShowDeprecated()

Get show deprecated.

#### Returns

`boolean`

### info(String) Method

    public void info(String aMsg)

Write to the logs, with extra information added. Convenience method for LOG_INFO.

#### Parameters

aMsg
  the message, if null it will be ignored.

### info(String, Throwable) Method

    public void info(String aMsg,
                     Throwable anException)

Write to the logs, with extra information added. Convenience method for LOG_INFO.

#### Parameters

aMsg
  the message, if null it will be ignored.

anException
  the exception;

### log(int, String) Method

    public void log(int aLevel,
                    String aMsg)

Write to the weblogic logs, with extra information added.

#### Parameters

aLevel
  aLevel Possible error levels are: LOG_DEBUG LOG_INFO LOG_WARNING LOG_ERROR LOG_FATAL LOG_SECURITY

aMsg
  the message, if null it will ignore.

### log(int, String, Throwable) Method

    public void log(int aLevel,
                    String aMsg,
                    Throwable anException)

Write to the weblogic logs, with extra information added.

#### Parameters

aLevel
  aLevel Possible error levels are: LOG_DEBUG LOG_INFO LOG_WARNING LOG_ERROR LOG_FATAL LOG_SECURITY

aMsg
  the message, if null it will ignore.

anException
  the exception.

### log(int, String, String) Method

    public void log(int aLevel,
                    String appName,
                    String aMsg)

Write to the logs, with extra information added.

#### Parameters

aLevel
  aLevel Possible error levels are: LOG_DEBUG LOG_INFO LOG_WARNING LOG_ERROR LOG_FATAL LOG_SECURITY

appName
  the name of the application logging the message

aMsg
  the message, if null it will ignore.

### log(int, String, String, Throwable) Method

    public void log(int aLevel,
                    String appName,
                    String aMsg,
                    Throwable anException)

Write to the logs, with extra information added.

#### Parameters

aLevel
  aLevel Possible error levels are: LOG_DEBUG LOG_INFO LOG_WARNING LOG_ERROR LOG_FATAL LOG_SECURITY

appName
  the name of the application logging the message

aMsg
  the message, if null it will ignore.

anException
  the exception.

### logOutput(int, String, String, Throwable) Method

    protected void logOutput(int aLevel,
                             String anAppName,
                             String aMsg,
                             Throwable anException)

Log the output. Assembles a complete message from the parameters and then writes to System.err.

### setMinimumLevel(int) Method

    public void setMinimumLevel(int aLevel)

Set minimum level.

### setShowDebug(boolean) Method

    public void setShowDebug(boolean aBool)

Set show debug.

### setShowDeprecated(boolean) Method

    public void setShowDeprecated(boolean aBool)

Set show deprecated.

### textForLevel(int) Method

    protected String textForLevel(int aLevel)

Text for level.

#### Returns

`String`