|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectautohit.common.AutohitBasicLogManager
Basic autohit log manager. If anyone orders a die or lets an instance fall out of scope, it will invalidate all instances (by killing the channel). Don't do it. You should really only have one of these--ever.
This will not create a channel controller!
EPG - Rewrite - 23Apr03
Controller
Constructor Summary | |
AutohitBasicLogManager()
Default constructor. |
|
AutohitBasicLogManager(AutohitLogDrain control,
AutohitLogDrain client)
Constructor. |
Method Summary | |
void |
addClient(Injector il,
java.lang.String id)
Add an injector to the client channel. |
void |
debugOff()
Turn debug logging off |
void |
debugOn()
Turn debug logging on. |
void |
die()
Die |
void |
discardClient(java.lang.String id)
It will discard a client injector |
void |
discardDrainWriter(java.lang.String id)
Discard client drain writer. |
protected void |
finalize()
|
AutohitLogDrain |
getClientDrain()
Get client drain |
AutohitLogDrain |
getDrain()
Get primary drain |
Injector |
getRootInjector()
Get the root injector. |
AutohitLogInjectorWrapper |
getRootLogger()
Get the root logger. |
void |
pretty(boolean p)
Set pretty formatting on output |
void |
stampit(boolean p)
Set timestamp formatting on output |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AutohitBasicLogManager() throws java.lang.Exception
public AutohitBasicLogManager(AutohitLogDrain control, AutohitLogDrain client) throws java.lang.Exception
control
- A control drainclient
- A client drain
java.lang.Exception
- which is usually a very bad thing.Method Detail |
public AutohitLogInjectorWrapper getRootLogger()
AutohitLogInjectorWrapper
public Injector getRootInjector()
AutohitLogInjectorWrapper
public void addClient(Injector il, java.lang.String id) throws java.lang.Exception
il
- An injectorid
- A string id for the sender. Technically, it doesn't have to be unique.
java.lang.Exception
Injector
public void discardClient(java.lang.String id)
id
- A string id for the sender. Needs to be the same as the one use to register it.public void pretty(boolean p)
p
- Set TRUE for on.public void stampit(boolean p)
p
- Set TRUE for on.public AutohitLogDrain getDrain()
public AutohitLogDrain getClientDrain()
public void discardDrainWriter(java.lang.String id)
id
- the id of the drain writer to discardpublic void debugOn()
public void debugOff()
public void die()
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |