Resource-Oriented Computing with NetKernel by Tom Geudens

Resource-Oriented Computing with NetKernel by Tom Geudens

Author:Tom Geudens [Tom Geudens]
Language: eng
Format: epub, pdf
Tags: COMPUTERS / Programming / Open Source
ISBN: 9781449322472
Publisher: O'Reilly Media
Published: 2012-05-15T16:00:00+00:00


The size (in bytes) the logfile can grow to before a next generation is started (a logrotate, in other words).

The number of generations the logfile can have before the oldest—0—generation is overwritten.

A boolean indicating if the logfile can be appended to (true) or not (false).

Well, we now have a logging configuration for First Module, and the endpoint itself already does the actual logging. All that’s left is to link the two together. In order to do that, you need to alter the space definition for our endpoint in [moduleroot]/module.xml a bit.

<space> <fileset> <regex>res:/resources/endpoints/.*</regex> </fileset> <fileset> <regex>res:/etc/system/LogConfig.xml</regex> </fileset> <import> <uri>urn:org:netkernel:lang:dpml</uri> </import> <import> <uri>urn:org:netkernel:lang:freemarker</uri> </import> </space>

Allow NetKernel to register this change to the module. Then try the following URLs again:

http://localhost:8080/firstmodule/helloservice/ http://localhost:8080/firstmodule/helloservice/tom

Now, navigate to the logviewer, and you should have one more log to select (Figure 5-15).



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.