lib/loggercontext.js
function LoggerContext() {
    LifeCycle.call(this);

    /**
     * Context start time
     */
    this.startTime = new Date();

    /**
     * The list of trace levels that the logger context knows about
     */
    this.logLevel = new LogLevel();

    /**
     * Root logger, final ancestor of all loggers
     */
    this.rootLogger = new Logger('[root]', this);

    /**
     * List of loggers that have been created, indexed by name.
     */
    this.loggers = {};

    /**
     * List of appenders that have been registered through a call to
     * "registerAppender", indexed by name.
     */
    this.appenders = {};

    /**
     * List of filters that have been registered through a call to
     * "registerFilter", indexed by name.
     */
    this.filters = {};

    /**
     * List of layouts that have been registered through a call to
     * "registerLayout", indexed by name.
     */
    this.layouts = {};

    /**
     * List of appenders that have been instantiated.
     *
     * The list is constructed when the configuration is applied. It is used
     * to start/stop appenders when corresponding functions are called on this
     * context.
     */
    this.createdAppenders = [];

    /**
     * The context-wide filter.
     *
     * The filter is constructed when the configuration is applied. If the
     * configuration specifies more than one context-wide filter, a
     * CompositeFilter filter is created.
     */
    this.filter = null;

    /**
     * Flag set when the context is up and running
     */
    this.started = false;

    /**
     * Log events received by the context before it got a chance to start and
     * that need to be processed as soon as the context is operational
     *
     * The context keeps a maximum of 1000 events in memory. If more events are
     * received before the context becomes operational, the context starts to
     * drop events, replacing the first event with a warning that events had to
     * be droppes. That warning is sent to the root logger.
     */
    this.pendingEvents = [];

    /**
     * Maximum number of log events that can be stored in the pending list.
     *
     * TODO: adjust this setting based on configuration settings.
     */
    this.maxPendingEvents = 1000;

    /**
     * Number of log events that had to be discarded so far
     */
    this.discardedPendingEvents = 0;
  }
function LoggerContext() {
    LifeCycle.call(this);

    /**
     * Context start time
     */
    this.startTime = new Date();

    /**
     * The list of trace levels that the logger context knows about
     */
    this.logLevel = new LogLevel();

    /**
     * Root logger, final ancestor of all loggers
     */
    this.rootLogger = new Logger('[root]', this);

    /**
     * List of loggers that have been created, indexed by name.
     */
    this.loggers = {};

    /**
     * List of appenders that have been registered through a call to
     * "registerAppender", indexed by name.
     */
    this.appenders = {};

    /**
     * List of filters that have been registered through a call to
     * "registerFilter", indexed by name.
     */
    this.filters = {};

    /**
     * List of layouts that have been registered through a call to
     * "registerLayout", indexed by name.
     */
    this.layouts = {};

    /**
     * List of appenders that have been instantiated.
     *
     * The list is constructed when the configuration is applied. It is used
     * to start/stop appenders when corresponding functions are called on this
     * context.
     */
    this.createdAppenders = [];

    /**
     * The context-wide filter.
     *
     * The filter is constructed when the configuration is applied. If the
     * configuration specifies more than one context-wide filter, a
     * CompositeFilter filter is created.
     */
    this.filter = null;

    /**
     * Flag set when the context is up and running
     */
    this.started = false;

    /**
     * Log events received by the context before it got a chance to start and
     * that need to be processed as soon as the context is operational
     *
     * The context keeps a maximum of 1000 events in memory. If more events are
     * received before the context becomes operational, the context starts to
     * drop events, replacing the first event with a warning that events had to
     * be droppes. That warning is sent to the root logger.
     */
    this.pendingEvents = [];

    /**
     * Maximum number of log events that can be stored in the pending list.
     *
     * TODO: adjust this setting based on configuration settings.
     */
    this.maxPendingEvents = 1000;

    /**
     * Number of log events that had to be discarded so far
     */
    this.discardedPendingEvents = 0;
  }
function LoggerContext ( ) { LifeCycle . call ( this ) ; /**
     * Context start time
     */ this . startTime = new Date ( ) ; /**
     * The list of trace levels that the logger context knows about
     */ this . logLevel = new LogLevel ( ) ; /**
     * Root logger, final ancestor of all loggers
     */ this . rootLogger = new Logger ( '[root]' , this ) ; /**
     * List of loggers that have been created, indexed by name.
     */ this . loggers = { } ; /**
     * List of appenders that have been registered through a call to
     * "registerAppender", indexed by name.
     */ this . appenders = { } ; /**
     * List of filters that have been registered through a call to
     * "registerFilter", indexed by name.
     */ this . filters = { } ; /**
     * List of layouts that have been registered through a call to
     * "registerLayout", indexed by name.
     */ this . layouts = { } ; /**
     * List of appenders that have been instantiated.
     *
     * The list is constructed when the configuration is applied. It is used
     * to start/stop appenders when corresponding functions are called on this
     * context.
     */ this . createdAppenders = [ ] ; /**
     * The context-wide filter.
     *
     * The filter is constructed when the configuration is applied. If the
     * configuration specifies more than one context-wide filter, a
     * CompositeFilter filter is created.
     */ this . filter = null ; /**
     * Flag set when the context is up and running
     */ this . started = false ; /**
     * Log events received by the context before it got a chance to start and
     * that need to be processed as soon as the context is operational
     *
     * The context keeps a maximum of 1000 events in memory. If more events are
     * received before the context becomes operational, the context starts to
     * drop events, replacing the first event with a warning that events had to
     * be droppes. That warning is sent to the root logger.
     */ this . pendingEvents = [ ] ; /**
     * Maximum number of log events that can be stored in the pending list.
     *
     * TODO: adjust this setting based on configuration settings.
     */ this . maxPendingEvents = 1000 ; /**
     * Number of log events that had to be discarded so far
     */ this . discardedPendingEvents = 0 ; }
Internal anchor point for the logging system, used by LogManager.

@constructor
Internal anchor point for the logging system used by LogManager .