Skip to content

Configuration(Repository)_Logging

linzhixing edited this page Jul 6, 2016 · 5 revisions

English/日本語


Logging configration

After NemakiWare 2.4 onward, default logger outputs JSON format logs, especially with some CMIS specific tweaks.
Configuration file is here.

How to

  • The file has the two parts: global and method.
  • global works as the default value and its configurations are inherited to each method and fill the missing field.
  • Even when an individual method configuration does not exist, global configuration will be used so that in almost all cases method specific configuration will not be required.
    For example,
"jp.aegif.nemaki.cmis.service.ObjectService.getObjectByPath":{
			"input":{
				"path":{"type":"simple"}
			}
},

has neither setting nor output field, but they are using global default values.
And you will find some CMIS method names are not on the file!

setting

  • uuid: boolean display log record's UUID
  • name: enum('simple' or 'full') how to display method name.
  • time: boolean display process time
  • logTime: boolean display process time (including logging itself)

input

  • <method argument name>:
    argument name is defined with jp.aegif.nemaki.util.spring.aspect.log.LogParam annotation.
    For CMIS service methods, the names are based on the CMIS specification.
    • type: enum('simple' or 'full') At present only 'simple' is supported. 'full' outputs toString().
    • properties: {<CMIS Property ID>": boolean, ...} format
    • list:
      • num: boolean display the number of list items
      • item: boolean display the items itself

output

same as an input argument configuration

Clone this wiki locally