-
Notifications
You must be signed in to change notification settings - Fork 18
/
spring-configuration-metadata.json
119 lines (119 loc) · 8.19 KB
/
spring-configuration-metadata.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"properties": [
{
"name": "log4jdbc.drivers",
"type": "java.util.list<java.lang.Class<? extends java.sql.Driver>>",
"description": "One or more fully qualified class names for JDBC drivers that log4jdbc should load and wrap. This option is not normally needed because most popular JDBC drivers are already loaded by default. This should be used if one or more additional JDBC drivers that (log4jdbc doesn't already wrap) needs to be included."
},
{
"name": "log4jdbc.auto.load.popular.drivers",
"type": "java.lang.Boolean",
"description": "Automatically load popular drivers. If this is false, you must set the log4jdbc.drivers property in order to load the driver(s) you want.",
"defaultValue": true
},
{
"name": "log4jdbc.debug.stack.prefix",
"type": "java.util.regex.Pattern",
"description": "A REGEX matching the package name of your application. The call stack will be searched down to the first occurrence of a class that has the matching REGEX. If this is not set, the actual class that called into log4jdbc is used in the debug output (in many cases this will be a connection pool class). For example, setting a system property such as this: -Dlog4jdbc.debug.stack.prefix=^com.mycompany.myapp.* would cause the call stack to be searched for the first call that came from code in the com.mycompany.myapp package or below, thus if all of your sql generating code was in code located in the com.mycompany.myapp package or any subpackages, this would be printed in the debug information, rather than the package name for a connection pool, object relational system, etc. Please note that the behavior of this property has changed as compared to the standard log4jdbc implementation. This property is now a REGEX, instead of being just the package prefix of the stack trace. So, for instance, if you want to target the prefix org.mypackage, the value of this property should be: ^org.mypackage.*."
},
{
"name": "log4jdbc.sqltiming.warn.threshold",
"type": "java.lang.Long",
"description": "Millisecond time value. Causes SQL that takes the number of milliseconds specified or more time to execute to be logged at the warning level in the sqltiming log. Note that the sqltiming log must be enabled at the warn log level for this feature to work. Also the logged output for this setting will log with debug information that is normally only shown when the sqltiming log is enabled at the debug level. This can help you to more quickly find slower running SQL without adding overhead or logging for normal running SQL that executes below the threshold level (if the logging level is set appropriately)."
},
{
"name": "log4jdbc.sqltiming.error.threshold",
"type": "java.lang.Long",
"description": "Millisecond time value. Causes SQL that takes the number of milliseconds specified or more time to execute to be logged at the error level in the sqltiming log. Note that the sqltiming log must be enabled at the error log level for this feature to work. Also the logged output for this setting will log with debug information that is normally only shown when the sqltiming log is enabled at the debug level. This can help you to more quickly find slower running SQL without adding overhead or logging for normal running SQL that executes below the threshold level (if the logging level is set appropriately.)"
},
{
"name": "log4jdbc.dump.booleanastruefalse",
"type": "java.lang.Boolean",
"description": "When dumping boolean values in SQL, dump them as 'true' or 'false'. If this option is not set, they will be dumped as 1 or 0 as many databases do not have a boolean type, and this allows for more portable sql dumping.",
"defaultValue": false
},
{
"name": "log4jdbc.dump.sql.maxlinelength",
"type": "java.lang.Integer",
"description": "When dumping SQL, if this is greater than 0, than the dumped SQL will be broken up into lines that are no longer than this value. Set this value to 0 if you don't want log4jdbc to try and break the SQL into lines this way. In future versions of log4jdbc, this will probably default to 0.",
"defaultValue": 90
},
{
"name": "log4jdbc.dump.fulldebugstacktrace",
"type": "java.lang.Boolean",
"description": "If dumping in debug mode, dump the full stack trace. This will result in EXTREMELY voluminous output, but can be very useful under some circumstances when trying to track down the call chain for generated SQL.",
"defaultValue": false
},
{
"name": "log4jdbc.dump.sql.select",
"type": "java.lang.Boolean",
"description": "Set this to false to suppress SQL select statements in the output. Note that if you use the Log4j 2 logger, it is also possible to control select statements output via the marker LOG4JDBC_SELECT. The use of this property prepend the use of the marker.",
"defaultValue": true
},
{
"name": "log4jdbc.dump.sql.insert",
"type": "java.lang.Boolean",
"description": "Set this to false to suppress SQL insert statements in the output. Note that if you use the Log4j 2 logger, it is also possible to control insert statements output via the marker. The use of this property prepend the use of the marker.",
"defaultValue": true
},
{
"name": "log4jdbc.dump.sql.update",
"type": "java.lang.Boolean",
"description": "Set this to false to suppress SQL update statements in the output. Note that if you use the Log4j 2 logger, it is also possible to control update statements output via the marker LOG4JDBC_UPDATE. The use of this property prepend the use of the marker.",
"defaultValue": true
},
{
"name": "log4jdbc.dump.sql.delete",
"type": "java.lang.Boolean",
"description": "Set this to false to suppress SQL delete statements in the output. Note that if you use the Log4j 2 logger, it is also possible to control delete statements output via the marker LOG4JDBC_DELETE. The use of this property prepend the use of the marker.",
"defaultValue": true
},
{
"name": "log4jdbc.dump.sql.create",
"type": "java.lang.Boolean",
"description": "Set this to false to suppress SQL create statements in the output. Note that if you use the Log4j 2 logger, it is also possible to control create statements output via the marker LOG4JDBC_CREATE. The use of this property prepend the use of the marker.",
"defaultValue": true
},
{
"name": "log4jdbc.dump.sql.addsemicolon",
"type": "java.lang.Boolean",
"description": "Set this to true to add an extra semicolon to the end of SQL in the output. This can be useful when you want to generate SQL from a program with log4jdbc in order to create a script to feed back into a database to run at a later time.",
"defaultValue": false
},
{
"name": "log4jdbc.spylogdelegator.name",
"type": "java.lang.Class<? extends net.sf.log4jdbc.log.SpyLogDelegator>",
"description": "The qualified class name of the SpyLogDelegator to use. Note that if you want to use log4jdbc-log4j2 with Log4j 2 rather than SLF4J, you must set this property to: net.sf.log4jdbc.log.log4j2.Log4j2SpyLogDelegator. Note that the default in this Starter is to use SLF4J which is different from the log4jdbc library's default.",
"defaultValue": "net.sf.log4jdbc.log.slf4j.Slf4jSpyLogDelegator"
},
{
"name": "log4jdbc.statement.warn",
"type": "java.lang.Boolean",
"description": "Set this to true to display warnings (Why would you care?) in the log when Statements are used in the log.",
"defaultValue": false
},
{
"name": "log4jdbc.trim.sql",
"type": "java.lang.Boolean",
"description": "Set this to false to not trim the logged SQL.",
"defaultValue": true
},
{
"name": "log4jdbc.trim.sql.extrablanklines",
"type": "java.lang.Boolean",
"description": "Set this to false to not trim extra blank lines in the logged SQL (by default, when more than one blank line in a row occurs, the contiguous lines are collapsed to just one blank line.)",
"defaultValue": true
},
{
"name": "log4jdbc.suppress.generated.keys.exception",
"type": "java.lang.Boolean",
"description": "Set to true to ignore any exception produced by the method, Statement.getGeneratedKeys()",
"defaultValue": false
},
{
"name": "log4jdbc.log4j2.properties.file",
"description": "Name of the property file to use",
"type": "org.springframework.core.io.Resource"
}
]
}