Spring Data MongoDB - Spring Web Services - Parent - SpringSource
Spring Data MongoDB - Spring Web Services - Parent - SpringSource Spring Data MongoDB - Spring Web Services - Parent - SpringSource
please define productname in your docbook file!9. Logging supportAn appender for Log4j is provided in the maven module "spring-data-mongodb-log4j". Note, there is nodependency on other Spring Mongo modules, only the MongoDB driver.9.1 MongoDB Log4j ConfigurationHere is an example configurationlog4j.rootCategory=INFO, stdoutlog4j.appender.stdout=org.springframework.data.document.mongodb.log4j.MongoLog4jAppenderlog4j.appender.stdout.layout=org.apache.log4j.PatternLayoutlog4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %nlog4j.appender.stdout.host = localhostlog4j.appender.stdout.port = 27017log4j.appender.stdout.database = logslog4j.appender.stdout.collectionPattern = %X{year}%X{month}log4j.appender.stdout.applicationId = my.applicationlog4j.appender.stdout.warnOrHigherWriteConcern = FSYNC_SAFElog4j.category.org.apache.activemq=ERRORlog4j.category.org.springframework.batch=DEBUGlog4j.category.org.springframework.data.document.mongodb=DEBUGlog4j.category.org.springframework.transaction=INFOThe important configuration to look at aside from host and port is the database and collectionPattern.The variables year, month, day and hour are available for you to use in forming a collection name. Thisis to support the common convention of grouping log information in a collection that corresponds to aspecific time period, for example a collection per day.There is also an applicationId which is put into the stored message. The document stored from loggingas the following keys: level, name, applicationId, timestamp, properties, traceback, and message.1.4.0.BUILD-SNAPSHOTSpring Data MongoDB -Reference Documentation 93
please define productname in your docbook file!10. JMX supportThe JMX support for MongoDB exposes the results of executing the 'serverStatus' command on theadmin database for a single MongoDB server instance. It also exposes an administrative MBean,MongoAdmin which will let you perform administrative operations such as drop or create a database.The JMX features build upon the JMX feature set available in the Spring Framework. See here formore details.10.1 MongoDB JMX ConfigurationSpring's Mongo namespace enables you to easily enable JMX functionality>
- Page 48 and 49: please define productname in your d
- Page 50 and 51: please define productname in your d
- Page 52 and 53: please define productname in your d
- Page 54 and 55: please define productname in your d
- Page 56 and 57: please define productname in your d
- Page 58 and 59: please define productname in your d
- Page 60 and 61: please define productname in your d
- Page 62 and 63: please define productname in your d
- Page 64 and 65: please define productname in your d
- Page 66 and 67: please define productname in your d
- Page 68 and 69: please define productname in your d
- Page 70 and 71: please define productname in your d
- Page 72 and 73: please define productname in your d
- Page 74 and 75: please define productname in your d
- Page 76 and 77: please define productname in your d
- Page 78 and 79: please define productname in your d
- Page 80 and 81: please define productname in your d
- Page 82 and 83: please define productname in your d
- Page 84 and 85: please define productname in your d
- Page 86 and 87: please define productname in your d
- Page 88 and 89: please define productname in your d
- Page 90 and 91: please define productname in your d
- Page 92 and 93: please define productname in your d
- Page 94 and 95: please define productname in your d
- Page 96 and 97: please define productname in your d
- Page 100 and 101: please define productname in your d
- Page 102 and 103: please define productname in your d
- Page 104: please define productname in your d
please define productname in your docbook file!9. Logging supportAn appender for Log4j is provided in the maven module "spring-data-mongodb-log4j". Note, there is nodependency on other <strong>Spring</strong> Mongo modules, only the <strong>MongoDB</strong> driver.9.1 <strong>MongoDB</strong> Log4j ConfigurationHere is an example configurationlog4j.rootCategory=INFO, stdoutlog4j.appender.stdout=org.springframework.data.document.mongodb.log4j.MongoLog4jAppenderlog4j.appender.stdout.layout=org.apache.log4j.PatternLayoutlog4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %nlog4j.appender.stdout.host = localhostlog4j.appender.stdout.port = 27017log4j.appender.stdout.database = logslog4j.appender.stdout.collectionPattern = %X{year}%X{month}log4j.appender.stdout.applicationId = my.applicationlog4j.appender.stdout.warnOrHigherWriteConcern = FSYNC_SAFElog4j.category.org.apache.activemq=ERRORlog4j.category.org.springframework.batch=DEBUGlog4j.category.org.springframework.data.document.mongodb=DEBUGlog4j.category.org.springframework.transaction=INFOThe important configuration to look at aside from host and port is the database and collectionPattern.The variables year, month, day and hour are available for you to use in forming a collection name. Thisis to support the common convention of grouping log information in a collection that corresponds to aspecific time period, for example a collection per day.There is also an applicationId which is put into the stored message. The document stored from loggingas the following keys: level, name, applicationId, timestamp, properties, traceback, and message.1.4.0.BUILD-SNAPSHOT<strong>Spring</strong> <strong>Data</strong> <strong>MongoDB</strong> -Reference Documentation 93