61 |
|
// start and bind each server in turn |
62 |
|
|
63 |
|
// create the logger (either Screen or File) |
64 |
< |
ScreenLoggerServant loggerRef = new ScreenLoggerServant(3); |
64 |
> |
ScreenLoggerServant loggerRef = new ScreenLoggerServant(Logger.SYSINIT); |
65 |
|
//FileLoggerServant loggerRef = new FileLoggerServant("core.log"); |
66 |
|
// and advertise it to the naming context |
67 |
|
objRef = poa.servant_to_reference(loggerRef); |
80 |
|
// start the POA off |
81 |
|
poa.the_POAManager().activate(); |
82 |
|
|
83 |
< |
logRef.write(toString, "started"); |
83 |
> |
logRef.write(toString, Logger.SYSINIT, "started"); |
84 |
|
|
85 |
|
// now we are running, we just need to serve |
86 |
|
// so we ask the orb to block for us until it has finished |