On Tue, Nov 27, 2012 at 02:54:05PM +0100, helix84 wrote:
> I've been meaning to ask this for a long time. I noticed that when
> working with code in the master branch, there's now a whole lot of log
> messages in the tomcat log files that weren't there in 1.8. Most
> prominently, this message appears on stderr when starting up the class
> launcher ([dspace]/bin/dspace). Is it just my environment or is
> everyone seeing this? Is it intended? They're probably related to
> dspace services. Or perhaps Spring?
> 
>  INFO [main] (DSpaceKernelInit.java:52) - Created new kernel:
> DSpaceKernel:org.dspace:name=98c3fc02-e8f0-40d9-a872-54b3cf2f16fa,type=DSpaceKernel:lastLoad=null:loadTime=0:running=false:kernel=null

That one is related to Services.  As near as I can figure it, the
kernel manages one (or more?) bean container(s) which in turn
configure the service code.  Code which wants to use Services needs to
create a kernel or find one that's already running, and then ask it
for the service manager, which it can ask for e.g. the
ConfigurationService.

We might want to move that message to DEBUG level.

>  INFO [main] (ConfigurationManager.java:1224) - Loading from
> classloader: file:/dspace/config/dspace.cfg

The configuration manager is what we had before ConfigurationService
was added.  Right now they operate in parallel.  Both
ConfigurationManager and the stock ConfigurationService have various
ways of locating dspace.cfg, so I can see why this is logged.

>  INFO [main] (ConfigurationManager.java:1224) - Using dspace provided
> log configuration (log.init.config)
>  INFO [main] (ConfigurationManager.java:1224) - Loading:
> /dspace/config/log4j.properties

One of the things that ConfigurationManager does is initialize the
logger, rather than just take the logger's default behavior.  I don't
recall why.  But, given that it does that, it's good to know where the
configuration came from and how.

-- 
Mark H. Wood, Lead System Programmer   [email protected]
I don't do "doorbusters".

Attachment: pgpd2eEPcASkD.pgp
Description: PGP signature

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to