Methods


-addLoggingConfiguration:
adds a logging configuration for the given context.
-addLoggingConfiguration:forContext:
adds a logging configuration for the given context.
-addRootLoggingConfiguration:
defines the logger which is used in case a logger could not be found for a particular context
-createAllSupercontextsOf:
creates all super contexts of a given context string.
+forContext
Return a logging instance suitable for the given context.
-init
initializes this object using the default logging formatter and ECNSLogLoggingWriter as the default logging writer
+instance
-loggerForContext:((NSString *))
determines the logger for the given context
+loggerForContext:((NSString *), (ECLoggingConfiguration *), (ECLoggingConfiguration *), (NSString *), (NSString *), (NSString *))
Return a logging instance suitable for the given context.

addLoggingConfiguration:


adds a logging configuration for the given context.

See Also:
addLoggingConfiguration:forContext:
- addLoggingConfiguration: (ECLoggingConfiguration *) aConfiguration forContext: (NSString *) aContext;
Parameter Descriptions
aConfiguration
configuration to register
aContext
context to register the configuration under
method result
self

addLoggingConfiguration:forContext:


adds a logging configuration for the given context.

See Also:
addLoggingConfiguration:
- addLoggingConfiguration: (ECLoggingConfiguration *) aConfiguration forContext: (NSString *) aContext;
Parameter Descriptions
aConfiguration
configuration to register
aContext
context to register the configuration under

addRootLoggingConfiguration:


defines the logger which is used in case a logger could not be found for a particular context

- addRootLoggingConfiguration: (ECLoggingConfiguration *) aConfiguration;
Parameter Descriptions
aConfiguration
configuration of the logger
method result
self

createAllSupercontextsOf:


creates all super contexts of a given context string.

- (NSArray *) createAllSupercontextsOf: (NSString *) aContextStr;
method result
array of super contexts where the first entry is the overall root context. The array may be empty if there exists no super context. The result does not contain the specified context strin g aContextStr itself.
Discussion

The set of super contexts of e.g. "com.company.context" is {"com.company", "com"}.


forContext


Return a logging instance suitable for the given context.

See Also:
loggerForContext:
+ (ECLogger *) loggerForContext: (NSString *) aContext;
Parameter Descriptions
aContext
implicitly specifies the output channel to be used
method result
returns a logging instance suitable for the given context.

init


initializes this object using the default logging formatter and ECNSLogLoggingWriter as the default logging writer

- init;
method result
self

instance


+ (ECLogging *) instance;
method result
the one and only logging instance

loggerForContext:((NSString *))


determines the logger for the given context

- (ECLogger *) loggerForContext: (NSString *) aContext;
method result
returns the logger which is suitable for the given context

loggerForContext:((NSString *), (ECLoggingConfiguration *), (ECLoggingConfiguration *), (NSString *), (NSString *), (NSString *))


Return a logging instance suitable for the given context.

See Also:
forContext
+ (ECLogger *) loggerForContext: (NSString *) aContext;
Parameter Descriptions
aContext
implicitly specifies the output channel to be used

(Last Updated November 08, 2007)