The goog.gears.LoggerServer Class

goog.gears.LoggerServer
> goog.Disposable

goog.gears.LoggerServer(worker, logCommandId, opt_workerName)

Creates an object that listens to incoming LOG commands and forwards them to a goog.debug.Logger

worker {goog.gears.Worker}
The worker thread that we are managing the loggers on.
logCommandId {number}
The command id used for logging.
opt_workerName {string=}
The name of the worker. If present then this is added to the log records and to exceptions as {@code workerName}.

.addOnDisposeCallback(callback, opt_scope)

Inherited from goog.Disposable .

Invokes a callback function when this object is disposed. Callbacks are invoked in the order in which they were added.

callback {!Function}
The callback function.
opt_scope {Object=}
An optional scope to call the callback in.

.creationStack {string}

Inherited from goog.Disposable .

If monitoring the goog.Disposable instances is enabled, stores the creation stack trace of the Disposable instance.

.dispose()

Inherited from goog.Disposable .

Disposes of the object. If the object hasn't already been disposed of, calls {@link #disposeInternal}. Classes that extend {@code goog.Disposable} should override {@link #disposeInternal} in order to delete references to COM objects, DOM nodes, and other disposable objects. Reentrant.

returns {void}
Nothing.

.getUseMessagePrefix()

returns {boolean}
* Whether to show the ID of the worker as a prefix to the shown message.

.isDisposed()

Inherited from goog.Disposable .

returns {boolean}
Whether the object has been disposed of.

.registerDisposable(disposable)

Inherited from goog.Disposable .

Associates a disposable object with this object so that they will be disposed together.

disposable {goog.disposable.IDisposable}
that will be disposed when this object is disposed.

.setUseMessagePrefix(b)

Whether to prefix the message text with the worker ID.

b {boolean}
True to prefix the messages.