# ECDefaultLoggingFormatter

## Abstract

Implementation of generic logging formatter.

## Discussion

The format can be specified via "-setOutputFormat". This method expects a string containing one or multipe variables which will be substituted at runtime.

The following variables are supported:

- __DATE__: Will be substituted by the current date
- __LEVEL__: Will be substituted by the logging level
- __MESSAGE__: Will be substituted by the logging message

All variables have to be specified as "${<varName>}", where varName equals one of the supported variables.

At present, the date format (__DATE__) will be given in the system's default date format.

## Methods

`+defaultLoggingFormatterFormat`
`-formatLoggingOutput`
  used to format a logging entry.
`-formatLoggingOutputForLevel:format:arguments:`
  used to format a logging entry.

### defaultLoggingFormatterFormat

>     + (NSString *) defaultLoggingFormatterFormat;

method result
  the default format string

### formatLoggingOutput

used to format a logging entry.

See Also:

> formatLoggingOutputForLevel:format:arguments:

>     - (NSString *) formatLoggingOutputForLevel: (ECLoggingLevel) loggingLevel format: (NSString *) formatString arguments: (va_list) args;

##### Parameter Descriptions

> `formatString`
>   NSString format string
> `args`
>   arguments for the format string

method result
  formatted string

### formatLoggingOutputForLevel:format:arguments:

used to format a logging entry.

See Also:

> formatLoggingOutput

>     - (NSString *) formatLoggingOutputForLevel: (ECLoggingLevel) loggingLevel format: (NSString *) formatString arguments: (va_list) args;

##### Parameter Descriptions

> `formatString`
>   NSString format string
> `args`
>   arguments for the format string

(Last Updated August 27, 2006)