[06/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/lightcolor/orange/jtable.min.css -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/lightcolor/orange/jtable.min.css b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/lightcolor/orange/jtable.min.css deleted file mode 100644 index e9d07a7..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/lightcolor/orange/jtable.min.css +++ /dev/null @@ -1 +0,0 @@ -div.jtable-main-container{position:relative}div.jtable-main-container div.jtable-title{position:relative;text-align:left}div.jtable-main-container div.jtable-title .jtable-close-button{right:0;top:0;bottom:0;position:absolute}div.jtable-main-container div.jtable-title div.jtable-toolbar{bottom:0;right:0;position:absolute;display:inline-block;margin-right:5px}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item{position:relative;display:inline-block;margin:0 0 0 5px;cursor:pointer;font-size:.9em;padding:2px;vertical-align:bottom}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-icon{display:inline-block;margin:2px;vertical-align:middle;width:16px;height:16px}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-text{display:inline-block;margin:2px;vertical-align:middle}div.jtable-main-container div.jtable-title .jtable-close-butt on+div.jtable-toolbar{margin-right:30px}div.jtable-main-container table.jtable{width:100%}div.jtable-main-container table.jtable thead th{vertical-align:middle;text-align:left}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container{position:relative}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container span.jtable-column-header-text{display:inline-block}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container div.jtable-column-resize-handler{position:absolute;height:24px;width:8px;right:-8px;top:-2px;z-index:2;cursor:col-resize}div.jtable-main-container table.jtable thead th.jtable-command-column-header{text-align:center}div.jtable-main-container table.jtable thead th.jtable-column-header-selecting{text-align:center;width:1%}div.jtable-main-container table.jtable thead th.jtable-column-header-selecting input{cursor:pointer}div.jtable-main-c ontainer table.jtable thead th.jtable-column-header-sortable{cursor:pointer}div.jtable-main-container table.jtable tbody tr>td .jtable-command-button{margin:0;padding:0;cursor:pointer;border:none;display:inline}div.jtable-main-container table.jtable tbody tr>td .jtable-command-button span{display:none}div.jtable-main-container table.jtable tbody tr>td.jtable-command-column{text-align:center;vertical-align:middle}div.jtable-main-container table.jtable tbody tr>td.jtable-selecting-column{text-align:center;vertical-align:middle}div.jtable-main-container table.jtable tbody tr>td.jtable-selecting-column input{cursor:pointer}div.jtable-main-container table.jtable tbody tr.jtable-no-data-row{text-align:center}div.jtable-main-container>div.jtable-bottom-panel{position:relative;min-height:24px;text-align:left}div.jtable-main-container>div.jtable-bottom-panel div.jtable-right-area{right:0;top:0;bottom:0;position:absolute}div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list{disp lay:inline-block}div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-space,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-first,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-last,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-previous,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-next,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-active{padding:2px 5px;display:inline-block;cursor:pointer}div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-space,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-active,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-numb er-disabled{cursor:default}div.jtable-main-container>div.jtable-bottom-panel span.jtable-page-size-change{margin-left:5px}div.jtable-main-container>div.jtable-bottom-panel span.jtable-goto-page{margin-left:5px}div.jtable-main-container>div.jtable-bottom-panel
[07/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/lightcolor/gray/jtable.min.css -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/lightcolor/gray/jtable.min.css b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/lightcolor/gray/jtable.min.css deleted file mode 100644 index 36d9f1d..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/lightcolor/gray/jtable.min.css +++ /dev/null @@ -1 +0,0 @@ -div.jtable-main-container{position:relative}div.jtable-main-container div.jtable-title{position:relative;text-align:left}div.jtable-main-container div.jtable-title .jtable-close-button{right:0;top:0;bottom:0;position:absolute}div.jtable-main-container div.jtable-title div.jtable-toolbar{bottom:0;right:0;position:absolute;display:inline-block;margin-right:5px}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item{position:relative;display:inline-block;margin:0 0 0 5px;cursor:pointer;font-size:.9em;padding:2px;vertical-align:bottom}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-icon{display:inline-block;margin:2px;vertical-align:middle;width:16px;height:16px}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-text{display:inline-block;margin:2px;vertical-align:middle}div.jtable-main-container div.jtable-title .jtable-close-butt on+div.jtable-toolbar{margin-right:30px}div.jtable-main-container table.jtable{width:100%}div.jtable-main-container table.jtable thead th{vertical-align:middle;text-align:left}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container{position:relative}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container span.jtable-column-header-text{display:inline-block}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container div.jtable-column-resize-handler{position:absolute;height:24px;width:8px;right:-8px;top:-2px;z-index:2;cursor:col-resize}div.jtable-main-container table.jtable thead th.jtable-command-column-header{text-align:center}div.jtable-main-container table.jtable thead th.jtable-column-header-selecting{text-align:center;width:1%}div.jtable-main-container table.jtable thead th.jtable-column-header-selecting input{cursor:pointer}div.jtable-main-c ontainer table.jtable thead th.jtable-column-header-sortable{cursor:pointer}div.jtable-main-container table.jtable tbody tr>td .jtable-command-button{margin:0;padding:0;cursor:pointer;border:none;display:inline}div.jtable-main-container table.jtable tbody tr>td .jtable-command-button span{display:none}div.jtable-main-container table.jtable tbody tr>td.jtable-command-column{text-align:center;vertical-align:middle}div.jtable-main-container table.jtable tbody tr>td.jtable-selecting-column{text-align:center;vertical-align:middle}div.jtable-main-container table.jtable tbody tr>td.jtable-selecting-column input{cursor:pointer}div.jtable-main-container table.jtable tbody tr.jtable-no-data-row{text-align:center}div.jtable-main-container>div.jtable-bottom-panel{position:relative;min-height:24px;text-align:left}div.jtable-main-container>div.jtable-bottom-panel div.jtable-right-area{right:0;top:0;bottom:0;position:absolute}div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list{disp lay:inline-block}div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-space,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-first,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-last,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-previous,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-next,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-active{padding:2px 5px;display:inline-block;cursor:pointer}div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-space,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-active,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-numb er-disabled{cursor:default}div.jtable-main-container>div.jtable-bottom-panel span.jtable-page-size-change{margin-left:5px}div.jtable-main-container>div.jtable-bottom-panel span.jtable-goto-page{margin-left:5px}div.jtable-main-container>div.jtable-bottom-panel
[01/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
Repository: logging-log4j-audit Updated Branches: refs/heads/master 3b40bf69b -> 7ccfa3aa8 http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/metro/red/jtable.css -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/metro/red/jtable.css b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/metro/red/jtable.css deleted file mode 100644 index 9a169ea..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/metro/red/jtable.css +++ /dev/null @@ -1,495 +0,0 @@ -/* jTable metro style theme - Red - * Created by Halil İbrahim Kalkan - * http://www.jtable.org - */ -@font-face { - font-family: 'Open Sans'; - font-style: normal; - font-weight: 300; - src: local('Open Sans Light'), local('OpenSans-Light'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/DXI1ORHCpsQm3Vp6mXoaTRa1RVmPjeKy21_GQJaLlJI.woff) format('woff'); -} -@font-face { - font-family: 'Open Sans'; - font-style: italic; - font-weight: 300; - src: local('Open Sans Light Italic'), local('OpenSansLight-Italic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxrsuoFAk0leveMLeqYtnfAY.woff) format('woff'); -} -@font-face { - font-family: 'Open Sans'; - font-style: normal; - font-weight: 400; - src: local('Open Sans'), local('OpenSans'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/u-WUoqrET9fUeobQW7jkRT8E0i7KZn-EPnyo3HZu7kw.woff) format('woff'); -} -@font-face { - font-family: 'Open Sans'; - font-style: italic; - font-weight: 400; - src: local('Open Sans Italic'), local('OpenSans-Italic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/xjAJXh38I15wypJXxuGMBtIh4imgI8P11RFo6YPCPC0.woff) format('woff'); -} -@font-face { - font-family: 'Open Sans'; - font-style: normal; - font-weight: 600; - src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/MTP_ySUJH_bn48VBG8sNSha1RVmPjeKy21_GQJaLlJI.woff) format('woff'); -} -@font-face { - font-family: 'Open Sans'; - font-style: italic; - font-weight: 600; - src: local('Open Sans Semibold Italic'), local('OpenSans-SemiboldItalic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxmWeb5PoA5ztb49yLyUzH1A.woff) format('woff'); -} -@font-face { - font-family: 'Open Sans'; - font-style: normal; - font-weight: 700; - src: local('Open Sans Bold'), local('OpenSans-Bold'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/k3k702ZOKiLJc3WVjuplzBa1RVmPjeKy21_GQJaLlJI.woff) format('woff'); -} -@font-face { - font-family: 'Open Sans'; - font-style: italic; - font-weight: 700; - src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxoUt79146ZFaIJxILcpzmhI.woff) format('woff'); -} -div.jtable-main-container { - position: relative; -} -div.jtable-main-container div.jtable-title { - position: relative; - text-align: left; -} -div.jtable-main-container div.jtable-title .jtable-close-button { - right: 0px; - top: 0px; - bottom: 0px; - position: absolute; -} -div.jtable-main-container div.jtable-title div.jtable-toolbar { - bottom: 0px; - right: 0px; - position: absolute; - display: inline-block; - margin-right: 5px; -} -div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item { - position: relative; - display: inline-block; - margin: 0px 0px 0px 5px; - cursor: pointer; - font-size: 0.9em; - padding: 2px; - vertical-align: bottom; -} -div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-icon { - display: inline-block; - margin: 2px; - vertical-align: middle; - width: 16px; - height: 16px; -} -div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-text { - display: inline-block; - margin: 2px; - vertical-align: middle; -} -div.jtable-main-container div.jtable-title .jtable-close-button + div.jtable-toolbar { - margin-right: 30px; -} -div.jtable-main-container table.jtable { - width: 100%; -} -div.jtable-main-container table.jtable thead th { - vertical-align: middle; - text-align: left; -} -div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container { - position: relative; -} -div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container span.jtable-column-header-text { - display: inline-block; -} -div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container div.jtable-column-resize-handler { - position: absolute; -
[05/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/metro/blue/jtable.min.css -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/metro/blue/jtable.min.css b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/metro/blue/jtable.min.css deleted file mode 100644 index 3c3b53f..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/metro/blue/jtable.min.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/DXI1ORHCpsQm3Vp6mXoaTRa1RVmPjeKy21_GQJaLlJI.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;src:local('Open Sans Light Italic'),local('OpenSansLight-Italic'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxrsuoFAk0leveMLeqYtnfAY.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/u-WUoqrET9fUeobQW7jkRT8E0i7KZn-EPnyo3HZu7kw.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/xjAJXh38I15wypJXxuGMBtIh4imgI8P11RFo6YPCPC0.woff ) format('woff')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/MTP_ySUJH_bn48VBG8sNSha1RVmPjeKy21_GQJaLlJI.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;src:local('Open Sans Semibold Italic'),local('OpenSans-SemiboldItalic'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxmWeb5PoA5ztb49yLyUzH1A.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/k3k702ZOKiLJc3WVjuplzBa1RVmPjeKy21_GQJaLlJI.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRm iXeptR36kaC0GEAetxoUt79146ZFaIJxILcpzmhI.woff) format('woff')}div.jtable-main-container{position:relative}div.jtable-main-container div.jtable-title{position:relative;text-align:left}div.jtable-main-container div.jtable-title .jtable-close-button{right:0;top:0;bottom:0;position:absolute}div.jtable-main-container div.jtable-title div.jtable-toolbar{bottom:0;right:0;position:absolute;display:inline-block;margin-right:5px}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item{position:relative;display:inline-block;margin:0 0 0 5px;cursor:pointer;font-size:.9em;padding:2px;vertical-align:bottom}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-icon{display:inline-block;margin:2px;vertical-align:middle;width:16px;height:16px}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-text{display:inline-block;margin:2px;vertical-align:middle}di v.jtable-main-container div.jtable-title .jtable-close-button+div.jtable-toolbar{margin-right:30px}div.jtable-main-container table.jtable{width:100%}div.jtable-main-container table.jtable thead th{vertical-align:middle;text-align:left}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container{position:relative}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container span.jtable-column-header-text{display:inline-block}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container div.jtable-column-resize-handler{position:absolute;height:24px;width:8px;right:-8px;top:-2px;z-index:2;cursor:col-resize}div.jtable-main-container table.jtable thead th.jtable-command-column-header{text-align:center}div.jtable-main-container table.jtable thead th.jtable-column-header-selecting{text-align:center;width:1%}div.jtable-main-container table.jtable thead th.jtable-col umn-header-selecting input{cursor:pointer}div.jtable-main-container table.jtable thead th.jtable-column-header-sortable{cursor:pointer}div.jtable-main-container table.jtable tbody tr>td .jtable-command-button{margin:0;padding:0;cursor:pointer;border:none;display:inline}div.jtable-main-container
[03/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/metro/green/jtable.css -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/metro/green/jtable.css b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/metro/green/jtable.css deleted file mode 100644 index 2576713..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/metro/green/jtable.css +++ /dev/null @@ -1,495 +0,0 @@ -/* jTable metro style theme - Green - * Created by Halil İbrahim Kalkan - * http://www.jtable.org - */ -@font-face { - font-family: 'Open Sans'; - font-style: normal; - font-weight: 300; - src: local('Open Sans Light'), local('OpenSans-Light'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/DXI1ORHCpsQm3Vp6mXoaTRa1RVmPjeKy21_GQJaLlJI.woff) format('woff'); -} -@font-face { - font-family: 'Open Sans'; - font-style: italic; - font-weight: 300; - src: local('Open Sans Light Italic'), local('OpenSansLight-Italic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxrsuoFAk0leveMLeqYtnfAY.woff) format('woff'); -} -@font-face { - font-family: 'Open Sans'; - font-style: normal; - font-weight: 400; - src: local('Open Sans'), local('OpenSans'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/u-WUoqrET9fUeobQW7jkRT8E0i7KZn-EPnyo3HZu7kw.woff) format('woff'); -} -@font-face { - font-family: 'Open Sans'; - font-style: italic; - font-weight: 400; - src: local('Open Sans Italic'), local('OpenSans-Italic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/xjAJXh38I15wypJXxuGMBtIh4imgI8P11RFo6YPCPC0.woff) format('woff'); -} -@font-face { - font-family: 'Open Sans'; - font-style: normal; - font-weight: 600; - src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/MTP_ySUJH_bn48VBG8sNSha1RVmPjeKy21_GQJaLlJI.woff) format('woff'); -} -@font-face { - font-family: 'Open Sans'; - font-style: italic; - font-weight: 600; - src: local('Open Sans Semibold Italic'), local('OpenSans-SemiboldItalic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxmWeb5PoA5ztb49yLyUzH1A.woff) format('woff'); -} -@font-face { - font-family: 'Open Sans'; - font-style: normal; - font-weight: 700; - src: local('Open Sans Bold'), local('OpenSans-Bold'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/k3k702ZOKiLJc3WVjuplzBa1RVmPjeKy21_GQJaLlJI.woff) format('woff'); -} -@font-face { - font-family: 'Open Sans'; - font-style: italic; - font-weight: 700; - src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxoUt79146ZFaIJxILcpzmhI.woff) format('woff'); -} -div.jtable-main-container { - position: relative; -} -div.jtable-main-container div.jtable-title { - position: relative; - text-align: left; -} -div.jtable-main-container div.jtable-title .jtable-close-button { - right: 0px; - top: 0px; - bottom: 0px; - position: absolute; -} -div.jtable-main-container div.jtable-title div.jtable-toolbar { - bottom: 0px; - right: 0px; - position: absolute; - display: inline-block; - margin-right: 5px; -} -div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item { - position: relative; - display: inline-block; - margin: 0px 0px 0px 5px; - cursor: pointer; - font-size: 0.9em; - padding: 2px; - vertical-align: bottom; -} -div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-icon { - display: inline-block; - margin: 2px; - vertical-align: middle; - width: 16px; - height: 16px; -} -div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-text { - display: inline-block; - margin: 2px; - vertical-align: middle; -} -div.jtable-main-container div.jtable-title .jtable-close-button + div.jtable-toolbar { - margin-right: 30px; -} -div.jtable-main-container table.jtable { - width: 100%; -} -div.jtable-main-container table.jtable thead th { - vertical-align: middle; - text-align: left; -} -div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container { - position: relative; -} -div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container span.jtable-column-header-text { - display: inline-block; -} -div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container div.jtable-column-resize-handler { - position: absolute; - height: 24px; - width: 8px; - right: -8px; - top: -2px; - z-index: 2; -
[1/2] logging-log4j2 git commit: Update travis config
Repository: logging-log4j2 Updated Branches: refs/heads/master a03cf45d0 -> 348f875e8 Update travis config Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/348f875e Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/348f875e Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/348f875e Branch: refs/heads/master Commit: 348f875e80b1bc0cefbb436c1bcd44cf6d2485ed Parents: 0b7d5f0 Author: Matt SickerAuthored: Sun Apr 8 12:19:47 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 12:20:51 2018 -0500 -- .travis-toolchains.xml | 11 --- .travis.yml| 17 - 2 files changed, 12 insertions(+), 16 deletions(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/348f875e/.travis-toolchains.xml -- diff --git a/.travis-toolchains.xml b/.travis-toolchains.xml index f170223..53ff360 100644 --- a/.travis-toolchains.xml +++ b/.travis-toolchains.xml @@ -20,17 +20,6 @@ jdk - java7 - 1.7 - oracle - - - /usr/lib/jvm/java-7-oracle - - - -jdk - java8 1.8 oracle http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/348f875e/.travis.yml -- diff --git a/.travis.yml b/.travis.yml index d3441ea..3fecb49 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,23 +11,30 @@ # limitations under the License. language: java -# sudo enabled because sudo vms have more memory: https://docs.travis-ci.com/user/ci-environment/ +# sudo enabled because sudo vms have more memory: https://docs.travis-ci.com/user/reference/overview/ sudo: true # trusty required for oraclejdk9 dist: trusty jdk: - - oraclejdk7 + - oraclejdk8 + +addons: + apt: +packages: + - oracle-java8-installer + - oracle-java9-installer + - maven env: global: JAVA_OPTS=-Xmx4g install: - - ./mvnw --toolchains=./.travis-toolchains.xml install -DskipTests=true -Dmaven.javadoc.skip=true -B -V + - mvn -t .travis-toolchains.xml install -DskipTests=true -Dmaven.javadoc.skip=true -B -V script: - - ./mvnw --toolchains=./.travis-toolchains.xml test -B + - mvn -t .travis-toolchains.xml test -B -V after_success: - - ./mvnw --show-version -pl !log4j-bom jacoco:prepare-agent test jacoco:report coveralls:report \ No newline at end of file + - mvn -t .travis-toolchains.xml -pl !log4j-bom jacoco:prepare-agent test jacoco:report coveralls:report -B -V
[2/2] logging-log4j2 git commit: Use 60 minute jenkins timeout
Use 60 minute jenkins timeout Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/0b7d5f00 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/0b7d5f00 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/0b7d5f00 Branch: refs/heads/master Commit: 0b7d5f0095cc109ddb8c6f3a1263fe6a8f6b1fe1 Parents: a03cf45 Author: Matt SickerAuthored: Sun Apr 8 11:53:58 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 12:20:51 2018 -0500 -- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/0b7d5f00/Jenkinsfile -- diff --git a/Jenkinsfile b/Jenkinsfile index b1efb44..ce82c96 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,7 +18,7 @@ pipeline { options { -timeout time: 40, unit: 'MINUTES' +timeout time: 60, unit: 'MINUTES' } agent none stages {
[1/2] logging-log4j2 git commit: Add missing license header
Repository: logging-log4j2 Updated Branches: refs/heads/master 30976bd54 -> 59f34d768 Add missing license header Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/09c204ad Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/09c204ad Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/09c204ad Branch: refs/heads/master Commit: 09c204ad66c7bb4b95b918c8614164ab8f1261fb Parents: 30976bd Author: Matt SickerAuthored: Sun Apr 8 13:36:59 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 13:36:59 2018 -0500 -- src/site/asciidoc/manual/async.adoc | 16 1 file changed, 16 insertions(+) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/09c204ad/src/site/asciidoc/manual/async.adoc -- diff --git a/src/site/asciidoc/manual/async.adoc b/src/site/asciidoc/manual/async.adoc index f39a759..9735ae0 100644 --- a/src/site/asciidoc/manual/async.adoc +++ b/src/site/asciidoc/manual/async.adoc @@ -1,3 +1,19 @@ + +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + +https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + = Lock-free Asynchronous Loggers for Low-Latency Logging Remko Popma
[1/2] logging-log4j2 git commit: Update tests from H2 1.4.196 to 1.4.197.
Repository: logging-log4j2 Updated Branches: refs/heads/master 04daf2a7d -> 3d7f546ae Update tests from H2 1.4.196 to 1.4.197. Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/faf996f3 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/faf996f3 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/faf996f3 Branch: refs/heads/master Commit: faf996f3ed5c461fb40883bbfb8f28128f3f0d89 Parents: a03cf45 Author: Gary GregoryAuthored: Sun Apr 8 13:30:59 2018 -0600 Committer: Gary Gregory Committed: Sun Apr 8 13:30:59 2018 -0600 -- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/faf996f3/pom.xml -- diff --git a/pom.xml b/pom.xml index 5b11d52..24759c7 100644 --- a/pom.xml +++ b/pom.xml @@ -712,7 +712,7 @@ com.h2database h2 -1.4.196 +1.4.197 org.eclipse.persistence
[1/2] logging-log4j2 git commit: Update org.apache.logging.log4j.core.appender.HttpAppenderTest from Wiremock 2.15.0 to 2.16.0.
Repository: logging-log4j2 Updated Branches: refs/heads/master db18f5ada -> 86e8caa1e Update org.apache.logging.log4j.core.appender.HttpAppenderTest from Wiremock 2.15.0 to 2.16.0. Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/0578540e Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/0578540e Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/0578540e Branch: refs/heads/master Commit: 0578540e57844439ce9dbcfa557c539ec177a817 Parents: d7f2fd7 Author: Gary GregoryAuthored: Sun Apr 8 15:07:26 2018 -0600 Committer: Gary Gregory Committed: Sun Apr 8 15:07:26 2018 -0600 -- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/0578540e/pom.xml -- diff --git a/pom.xml b/pom.xml index f77cd0d..8504fc0 100644 --- a/pom.xml +++ b/pom.xml @@ -784,7 +784,7 @@ com.github.tomakehurst wiremock test -2.15.0 +2.16.0
[2/2] logging-log4j2 git commit: Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/logging-log4j2.git
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/logging-log4j2.git Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/86e8caa1 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/86e8caa1 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/86e8caa1 Branch: refs/heads/master Commit: 86e8caa1e76be69e6126b77cb9c1137c14278431 Parents: 0578540 db18f5a Author: Gary GregoryAuthored: Sun Apr 8 15:11:34 2018 -0600 Committer: Gary Gregory Committed: Sun Apr 8 15:11:34 2018 -0600 -- src/site/asciidoc/faq.adoc | 2 +- src/site/asciidoc/manual/customconfig.adoc | 386 +++ src/site/asciidoc/manual/extending.adoc| 624 src/site/asciidoc/manual/logsep.adoc | 121 + src/site/asciidoc/manual/migration.adoc| 359 ++ src/site/asciidoc/manual/plugins.adoc | 262 ++ src/site/asciidoc/manual/webapp.adoc | 486 ++ src/site/xdoc/manual/customconfig.xml | 375 -- src/site/xdoc/manual/extending.xml | 565 - src/site/xdoc/manual/logsep.xml| 123 - src/site/xdoc/manual/migration.xml | 351 - src/site/xdoc/manual/plugins.xml | 257 -- src/site/xdoc/manual/webapp.xml| 451 - 13 files changed, 2239 insertions(+), 2123 deletions(-) --
logging-log4j2 git commit: [LOG4J2-2311] Update Jackson from 2.9.4 to 2.9.5.
Repository: logging-log4j2 Updated Branches: refs/heads/master 3d7f546ae -> d7f2fd7d4 [LOG4J2-2311] Update Jackson from 2.9.4 to 2.9.5. Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/d7f2fd7d Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/d7f2fd7d Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/d7f2fd7d Branch: refs/heads/master Commit: d7f2fd7d465cb982652e377bcf1c0689a2cbb65c Parents: 3d7f546 Author: Gary GregoryAuthored: Sun Apr 8 14:48:25 2018 -0600 Committer: Gary Gregory Committed: Sun Apr 8 14:48:25 2018 -0600 -- pom.xml | 2 +- src/changes/changes.xml | 6 ++ 2 files changed, 7 insertions(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d7f2fd7d/pom.xml -- diff --git a/pom.xml b/pom.xml index 24759c7..f77cd0d 100644 --- a/pom.xml +++ b/pom.xml @@ -181,7 +181,7 @@ 1.7.25 1.2.3 1.9.13 -2.9.4 +2.9.5 3.2.18.RELEASE 1.8.0 3.3.8 http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d7f2fd7d/src/changes/changes.xml -- diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 50cc46f..62c2412 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -124,6 +124,9 @@ Curly braces in parameters are not treated as placeholders. + +Update Jackson from 2.9.4 to 2.9.5. + @@ -141,6 +144,9 @@ Log4j2 2.8.2 JMX unregister NullPointerException. + +Update Jackson from 2.9.4 to 2.9.5. +
logging-log4j2 git commit: Add IBM JDK testing to jenkins pipeline
Repository: logging-log4j2 Updated Branches: refs/heads/master f36276adf -> ddb5926b1 Add IBM JDK testing to jenkins pipeline Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/ddb5926b Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/ddb5926b Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/ddb5926b Branch: refs/heads/master Commit: ddb5926b16a9a39229982192e490e37ae45511ba Parents: f36276a Author: Matt SickerAuthored: Sun Apr 8 12:40:03 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 12:40:03 2018 -0500 -- Jenkinsfile| 13 + toolchains-jenkins-ibm.xml | 63 + 2 files changed, 76 insertions(+) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/ddb5926b/Jenkinsfile -- diff --git a/Jenkinsfile b/Jenkinsfile index ce82c96..ac900ce 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -41,6 +41,19 @@ pipeline { } } } +stage('IBM JDK') { +agent { label 'ubuntu&&!H20' } +tools { +jdk 'IBM 1.8 64-bit (on Ubuntu only)' +maven 'Maven 3 (latest)' +} +steps { +ansiColor('xterm') { +sh 'mvn -t toolchains-jenkins-ibm.xml -Djenkins -V install' +junit '*/target/*-reports/*.xml' +} +} +} stage('Windows') { agent { label 'Windows' } tools { http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/ddb5926b/toolchains-jenkins-ibm.xml -- diff --git a/toolchains-jenkins-ibm.xml b/toolchains-jenkins-ibm.xml new file mode 100644 index 000..4fdd5c6 --- /dev/null +++ b/toolchains-jenkins-ibm.xml @@ -0,0 +1,63 @@ + + + + + +jdk + + 1.7 + ibm + + + /home/jenkins/tools/java/ibm-1.7-64 + + + +jdk + + 1.8 + ibm + + + /home/jenkins/tools/java/ibm-java-x86_64-80 + + + + +jdk + + 9 + sun + + + /home/jenkins/tools/java/latest1.9 + + + +jdk + + 10 + sun + + + /home/jenkins/tools/java/latest10 + + + + +
[3/5] logging-log4j2 git commit: LOG4J2-1802: Convert markers manual page to asciidoc
LOG4J2-1802: Convert markers manual page to asciidoc Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/56eb7a04 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/56eb7a04 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/56eb7a04 Branch: refs/heads/master Commit: 56eb7a040f259d814006088a79a884d411df48a9 Parents: f000b5e Author: Matt SickerAuthored: Sun Apr 8 13:49:32 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 13:49:32 2018 -0500 -- src/site/asciidoc/manual/markers.adoc | 104 +++ src/site/xdoc/manual/markers.xml | 110 - 2 files changed, 104 insertions(+), 110 deletions(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/56eb7a04/src/site/asciidoc/manual/markers.adoc -- diff --git a/src/site/asciidoc/manual/markers.adoc b/src/site/asciidoc/manual/markers.adoc new file mode 100644 index 000..ebf1b1d --- /dev/null +++ b/src/site/asciidoc/manual/markers.adoc @@ -0,0 +1,104 @@ + +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + +https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + += Log4j 2 API +Ralph Goers + +[#Markers] +== Markers + +One of the primary purpose of a logging framework is to provide the +means to generate debugging and diagnostic information only when it is +needed, and to allow filtering of that information so that it does not +overwhelm the system or the individuals who need to make use of it. As +an example, an application desires to log its entry, exit and other +operations separately from SQL statements being executed, and wishes to +be able to log queries separate from updates. One way to accomplish this +is shown below: + +[source,java] + +import org.apache.logging.log4j.Logger; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.MarkerManager; +import java.util.Map; + +public class MyApp { + +private Logger logger = LogManager.getLogger(MyApp.class.getName()); +private static final Marker SQL_MARKER = MarkerManager.getMarker("SQL"); +private static final Marker UPDATE_MARKER = MarkerManager.getMarker("SQL_UPDATE").setParents(SQL_MARKER); +private static final Marker QUERY_MARKER = MarkerManager.getMarker("SQL_QUERY").setParents(SQL_MARKER); + +public String doQuery(String table) { +logger.traceEntry(); + +logger.debug(QUERY_MARKER, "SELECT * FROM {}", table); + +String result = ... + +return logger.traceExit(result); +} + +public String doUpdate(String table, Map params) { +logger.traceEntry(); + +if (logger.isDebugEnabled()) { +logger.debug(UPDATE_MARKER, "UPDATE {} SET {}", table, formatCols()); +} + +String result = ... + +return logger.traceExit(result); +} + +private String formatCols(Map cols) { +StringBuilder sb = new StringBuilder(); +boolean first = true; +for (Map.Entry entry : cols.entrySet()) { +if (!first) { +sb.append(", "); +} +sb.append(entry.getKey()).append("=").append(entry.getValue()); +first = false; +} +return sb.toString(); +} +} + + +In the example above it is now possible to add MarkerFilters to only +allow SQL update operations to be logged, all SQL updates to be logged +or to log everything in MyApp. + +Some important rules about Markers must be considered when using them. + +1. Markers must be unique. They are permanently registered by name so +care should be taken to insure that Markers used in your application are +distinct from those in the application's dependencies, unless that is +what is desired. +2. Parent Markers can be added or removed dynamically. However, this is +fairly expensive to do. Instead, it is recommended that the parents be +identified when
[5/5] logging-log4j2 git commit: LOG4J2-1802: Convert thread context manual page to asciidoc
LOG4J2-1802: Convert thread context manual page to asciidoc Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/71b1f20f Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/71b1f20f Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/71b1f20f Branch: refs/heads/master Commit: 71b1f20f68154d5138bdcc9c2d864ccc4a13f414 Parents: c34fa7e Author: Matt SickerAuthored: Sun Apr 8 14:04:32 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 14:04:32 2018 -0500 -- src/site/asciidoc/manual/thread-context.adoc | 233 ++ src/site/xdoc/manual/thread-context.xml | 209 --- 2 files changed, 233 insertions(+), 209 deletions(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/71b1f20f/src/site/asciidoc/manual/thread-context.adoc -- diff --git a/src/site/asciidoc/manual/thread-context.adoc b/src/site/asciidoc/manual/thread-context.adoc new file mode 100644 index 000..e32cb79 --- /dev/null +++ b/src/site/asciidoc/manual/thread-context.adoc @@ -0,0 +1,233 @@ + +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + +https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + += Log4j 2 API +Ralph Goers ; Gary Gregory + +== Thread Context + +Log4j introduced the concept of the Mapped Diagnostic Context or MDC. It +has been documented and discussed in numerous places including +http://veerasundar.com/blog/2009/10/log4j-mdc-mapped-diagnostic-context-what-and-why/[Log4j +MDC: What and Why] and +http://blog.f12.no/wp/2004/12/09/log4j-and-the-mapped-diagnostic-context/[Log4j +and the Mapped Diagnostic Context]. In addition, Log4j 1.x provides +support for a Nested Diagnostic Context or NDC. It too has been +documented and discussed in various places such as +http://lstierneyltd.com/blog/development/log4j-nested-diagnostic-contexts-ndc/[Log4j +NDC]. SLF4J/Logback followed with its own implementation of the MDC, +which is documented very well at +http://logback.qos.ch/manual/mdc.html[Mapped Diagnostic Context]. + +Log4j 2 continues with the idea of the MDC and the NDC but merges them +into a single Thread Context. The Thread Context Map is the equivalent +of the MDC and the Thread Context Stack is the equivalent of the NDC. +Although these are frequently used for purposes other than diagnosing +problems, they are still frequently referred to as the MDC and NDC in +Log4j 2 since they are already well known by those acronyms. + +=== Fish Tagging + +Most real-world systems have to deal with multiple clients +simultaneously. In a typical multithreaded implementation of such a +system, different threads will handle different clients. Logging is +especially well suited to trace and debug complex distributed +applications. A common approach to differentiate the logging output of +one client from another is to instantiate a new separate logger for each +client. This promotes the proliferation of loggers and increases the +management overhead of logging. + +A lighter technique is to uniquely stamp each log request initiated from +the same client interaction. Neil Harrison described this method in the +book "Patterns for Logging Diagnostic Messages," in _Pattern Languages +of Program Design 3_, edited by R. Martin, D. Riehle, and F. Buschmann +(Addison-Wesley, 1997). Just as a fish can be tagged and have its +movement tracked, stamping log events with a common tag or set of data +elements allows the complete flow of a transaction or a request to be +tracked. We call this _Fish Tagging_. + +Log4j provides two mechanisms for performing Fish Tagging; the Thread +Context Map and the Thread Context Stack. The Thread Context Map allows +any number of items to be added and be identified using key/value pairs. +The Thread Context Stack allows one or more items to be pushed on the +Stack and then be identified by their order in the Stack or by the data +itself. Since key/value pairs are more flexible,
[1/5] logging-log4j2 git commit: LOG4J2-1802: Convert event logging manual page to asciidoc
Repository: logging-log4j2 Updated Branches: refs/heads/master 59f34d768 -> 71b1f20f6 LOG4J2-1802: Convert event logging manual page to asciidoc Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/7c855d1e Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/7c855d1e Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/7c855d1e Branch: refs/heads/master Commit: 7c855d1e336b35f2a7735e2e2b2edf6fa903036a Parents: 59f34d7 Author: Matt SickerAuthored: Sun Apr 8 13:44:29 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 13:44:29 2018 -0500 -- src/site/asciidoc/manual/eventlogging.adoc | 142 +++ src/site/xdoc/manual/eventlogging.xml | 145 2 files changed, 142 insertions(+), 145 deletions(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/7c855d1e/src/site/asciidoc/manual/eventlogging.adoc -- diff --git a/src/site/asciidoc/manual/eventlogging.adoc b/src/site/asciidoc/manual/eventlogging.adoc new file mode 100644 index 000..c91f1f7 --- /dev/null +++ b/src/site/asciidoc/manual/eventlogging.adoc @@ -0,0 +1,142 @@ + +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + +https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + += Log4j 2 API +Ralph Goers + +[#EventLogging] +== Event Logging + +The `EventLogger` class provides a simple mechanism for logging events +that occur in an application. While the `EventLogger` is useful as a way +of initiating events that should be processed by an audit Logging +system, by itself it does not implement any of the features an audit +logging system would require such as guaranteed delivery. + +The recommended way of using the `EventLogger` in a typical web +application is to populate the `ThreadContext` Map with data that is +related to the entire lifespan of the request such as the user's id, the +user's IP address, the product name, etc. This can easily be done in a +servlet filter where the `ThreadContext` Map can also be cleared at the +end of the request. When an event that needs to be recorded occurs a +`StructuredDataMessage` should be created and populated. Then call +`EventLogger.logEvent(msg)` where msg is a reference to the +`StructuredDataMessage`. + +[source,java] + +import org.apache.logging.log4j.ThreadContext; +import org.apache.commons.lang.time.DateUtils; + +import javax.servlet.Filter; +import javax.servlet.FilterConfig; +import javax.servlet.ServletException; +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; +import javax.servlet.FilterChain; +import javax.servlet.http.HttpSession; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.TimeZone; + +public class RequestFilter implements Filter { +private FilterConfig filterConfig; +private static String TZ_NAME = "timezoneOffset"; + +public void init(FilterConfig filterConfig) throws ServletException { +this.filterConfig = filterConfig; +} + +/** + * Sample filter that populates the MDC on every request. + */ +public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) +throws IOException, ServletException { +HttpServletRequest request = (HttpServletRequest)servletRequest; +HttpServletResponse response = (HttpServletResponse)servletResponse; +ThreadContext.put("ipAddress", request.getRemoteAddr()); +HttpSession session = request.getSession(false); +TimeZone timeZone = null; +if (session != null) { +// Something should set this after authentication completes +String loginId = (String)session.getAttribute("LoginId"); +if (loginId != null) { +ThreadContext.put("loginId", loginId); +} +// This
[4/5] logging-log4j2 git commit: LOG4J2-1802: Convert messages manual page to asciidoc
LOG4J2-1802: Convert messages manual page to asciidoc Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/c34fa7ef Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/c34fa7ef Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/c34fa7ef Branch: refs/heads/master Commit: c34fa7efaa75f41ecdbae5ca426c2529738f2d86 Parents: 56eb7a0 Author: Matt SickerAuthored: Sun Apr 8 13:59:27 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 13:59:27 2018 -0500 -- src/site/asciidoc/manual/messages.adoc | 333 src/site/xdoc/manual/messages.xml | 314 -- 2 files changed, 333 insertions(+), 314 deletions(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/c34fa7ef/src/site/asciidoc/manual/messages.adoc -- diff --git a/src/site/asciidoc/manual/messages.adoc b/src/site/asciidoc/manual/messages.adoc new file mode 100644 index 000..8c27dc3 --- /dev/null +++ b/src/site/asciidoc/manual/messages.adoc @@ -0,0 +1,333 @@ + +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + +https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + += Log4j 2 API +Ralph Goers + +[#Messages] +== Messages + +Although Log4j 2 provides Logger methods that accept Strings and +Objects, all of these are ultimately captured in Message objects that +are then associated with the log event. Applications are free to +construct Messages of their own and pass them to the Logger. Although it +may seem more expensive than passing the message format and parameters +directly to the event, testing has shown that with modern JVMs the cost +of creating and destroying events is minor, especially when complex +tasks are encapsulated in the Message instead of the application. In +addition, when using the methods that accept Strings and parameters, the +underlying Message object will only be created if any configured global +filters or the Logger's log level allow the message to be processed. + +Consider an application that has a Map object containing \{"Name" = +"John Doe", "Address" = "123 Main St.", "Phone" = "(999) 555-1212"} and +a User object that has a getId method that returns "jdoe". The developer +would like to add an informational message that returns "User John Doe +has logged in using id jdoe". The way this could be accomplished is by +doing: + +[source,java] + +logger.info("User {} has logged in using id {}", map.get("Name"), user.getId()); + + +While there is nothing inherently wrong with this, as the complexity of +the objects and desired output increases this technique becomes harder +to use. As an alternative, using Messages allows: + +[source,java] + +logger.info(new LoggedInMessage(map, user)); + + +In this alternative the formatting is delegated to the `LoggedInMessage` +object's `getFormattedMessage` method. Although in this alternative a new +object is created, none of the methods on the objects passed to the +`LoggedInMessage` are invoked until the `LoggedInMessage` is formatted. This +is especially useful when an `Object`'s `toString` method does not produce +the information you would like to appear in the log. + +Another advantage to Messages is that they simplify writing Layouts. In +other logging frameworks the Layout must loop through the parameters +individually and determine what to do based on what objects are +encountered. With Messages the Layout has the option of delegating the +formatting to the Message or performing its formatting based on the type +of Message encountered. + +Borrowing from the earlier example illustrating Markers to identify SQL +statements being logged, Messages can also be leveraged. First, the +Message is defined. + +[source,java] + +public class SQLMessage implements Message { + public enum SQLType { + UPDATE, + QUERY + }; + + private final SQLType type; + private final String table; + private final Map cols; + +
[2/5] logging-log4j2 git commit: LOG4J2-1802: Convert flow tracing manual page to asciidoc
LOG4J2-1802: Convert flow tracing manual page to asciidoc Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/f000b5e3 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/f000b5e3 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/f000b5e3 Branch: refs/heads/master Commit: f000b5e336ff31e5046b9e8791a1b28190639c22 Parents: 7c855d1 Author: Matt SickerAuthored: Sun Apr 8 13:46:35 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 13:48:07 2018 -0500 -- src/site/asciidoc/manual/flowtracing.adoc | 275 + src/site/xdoc/manual/flowtracing.xml | 268 2 files changed, 275 insertions(+), 268 deletions(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/f000b5e3/src/site/asciidoc/manual/flowtracing.adoc -- diff --git a/src/site/asciidoc/manual/flowtracing.adoc b/src/site/asciidoc/manual/flowtracing.adoc new file mode 100644 index 000..3fc318b --- /dev/null +++ b/src/site/asciidoc/manual/flowtracing.adoc @@ -0,0 +1,275 @@ + +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + +https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + += Log4j 2 API +Ralph Goers + +[#FlowTracing] +== Flow Tracing + +The `Logger` class provides logging methods that are quite useful for +following the execution path of applications. These methods generate +logging events that can be filtered separately from other debug logging. +Liberal use of these methods is encouraged as the output has been found +to + +* aid in problem diagnosis in development without requiring a debug +session +* aid in problem diagnosis in production where no debugging is possible +* help educate new developers in learning the application. + +The most used methods are the entry() or traceEntry() and exit() or +traceExit() methods. entry() or traceEntry() should be placed at the +beginning of methods, except perhaps for simple getters and setters. +entry() can be called passing from 0 to 4 parameters. Typically these +will be parameters passed to the method. traceEntry() can be passed a +format String and a variable list of parameters, or a Message. The +entry() and traceEntry() methods log with a level of TRACE and uses a +Marker with a name of "ENTER" which is also a "FLOW" Marker and all +message strings will begin with "event", even if a format String or +Message is used. + +The main difference between the entry and traceEntry methods is that the +entry method accepts a variable list of objects where presumably each is +a method parameter. The traceEntry method accepts a format string +followed by a variable list of objects, presumably included in the +format String. It is not possible to have a single method that includes +both of these as it would be ambiguous whether the first String is a +parameter or a format String. + +An exit() or traceExit() method should be placed before any return +statement or as the last statement of methods without a return. exit() +and traceExit() can be called with or without a parameter. Typically, +methods that return void will use exit() or traceExit() while methods +that return an Object will use exit(Object obj) or traceExit(object, new +SomeMessage(object)). The exit() and traceExit() methods log with a +level of TRACE and uses a Marker with a name of "EXIT" which is also a +"FLOW" Marker and all message strings will begin with "exit", even if a +format String or Message is used. + +The throwing() method can be used by an application when it is throwing +an exception that is unlikely to be handled, such as a RuntimeException. +This will insure that proper diagnostics are available if needed. The +logging event generated will have a level of ERROR and will have an +associated Marker with a name of "THROWING" which is also an "EXCEPTION" +Marker. + +The catching() method can be used by an application when it catches an +Exception that it is not going to rethrow, either
logging-log4j2 git commit: [LOG4J2-2311] Update Jackson from 2.9.4 to 2.9.5.
Repository: logging-log4j2 Updated Branches: refs/heads/release-2.x 059153778 -> 8b3db847e [LOG4J2-2311] Update Jackson from 2.9.4 to 2.9.5. Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/8b3db847 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/8b3db847 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/8b3db847 Branch: refs/heads/release-2.x Commit: 8b3db847e575d34077619d95bf906a89e5dfd7c6 Parents: 0591537 Author: Gary GregoryAuthored: Sun Apr 8 14:20:28 2018 -0600 Committer: Gary Gregory Committed: Sun Apr 8 14:20:28 2018 -0600 -- pom.xml | 2 +- src/changes/changes.xml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/8b3db847/pom.xml -- diff --git a/pom.xml b/pom.xml index e91b24b..04aaab7 100644 --- a/pom.xml +++ b/pom.xml @@ -181,7 +181,7 @@ 1.7.25 1.2.3 1.9.13 -2.9.4 +2.9.5 3.2.18.RELEASE 1.7.0 3.3.7 http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/8b3db847/src/changes/changes.xml -- diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 15bd397..3b60f5e 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -46,6 +46,9 @@ Log4j2 2.8.2 JMX unregister NullPointerException. + + Update Jackson from 2.9.4 to 2.9.5. +
logging-log4j2 git commit: Update org.apache.logging.log4j.core.appender.HttpAppenderTest from Wiremock 2.15.0 to 2.16.0.
Repository: logging-log4j2 Updated Branches: refs/heads/release-2.x 8b3db847e -> 4b784946c Update org.apache.logging.log4j.core.appender.HttpAppenderTest from Wiremock 2.15.0 to 2.16.0. Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/4b784946 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/4b784946 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/4b784946 Branch: refs/heads/release-2.x Commit: 4b784946cae8e02fab4129db596a61833e0f9cb5 Parents: 8b3db84 Author: Gary GregoryAuthored: Sun Apr 8 15:09:37 2018 -0600 Committer: Gary Gregory Committed: Sun Apr 8 15:09:37 2018 -0600 -- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/4b784946/pom.xml -- diff --git a/pom.xml b/pom.xml index 04aaab7..9504bc8 100644 --- a/pom.xml +++ b/pom.xml @@ -785,7 +785,7 @@ com.github.tomakehurst wiremock test -2.15.0 +2.16.0
[09/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/localization/jquery.jtable.lt.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/localization/jquery.jtable.lt.js b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/localization/jquery.jtable.lt.js deleted file mode 100644 index df1b705..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/localization/jquery.jtable.lt.js +++ /dev/null @@ -1,30 +0,0 @@ -/* -jTable localization file for 'Lithuanian' language. -Author: Vygandas Å imkus -*/ -(function ($) { - -$.extend(true, $.hik.jtable.prototype.options.messages, { -serverCommunicationError: 'Klaida bandant susisiekti su serveriu.', -loadingMessage: 'Informacija kraunama...', -noDataAvailable: 'NÄra duomenų!', -addNewRecord: '+ PridÄti naujÄ ', -editRecord: 'Redaguoti', -areYouSure: 'Ar tikrai?', -deleteConfirmation: 'Ä®raÅ¡as bus iÅ¡trintas. Ar tÄsti?', -save: 'IÅ¡saugoti', -saving: 'Saugojama', -cancel: 'AtÅ¡aukti', -deleteText: 'IÅ¡trinti', -deleting: 'Trinama', -error: 'Klaida', -close: 'Uždaryti', -cannotLoadOptionsFor: 'Nepavyko užkrauti "{0}" pasirinkimo!', -pagingInfo: '{0}-{1} iÅ¡ {2}', -canNotDeletedRecords: 'Nepavyko paÅ¡alinti {0} iÅ¡ {1} įrašų!', -deleteProggress: 'Å alinamas {0} iÅ¡ {1} įrašų, praÅ¡ome palaukti...', -pageSizeChangeLabel: 'Row count', //New. Must be localized. -gotoPageLabel: 'Go to page' //New. Must be localized. -}); - -})(jQuery); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/localization/jquery.jtable.nl-NL.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/localization/jquery.jtable.nl-NL.js b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/localization/jquery.jtable.nl-NL.js deleted file mode 100644 index 942ef0f..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/localization/jquery.jtable.nl-NL.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - jTable localization file for 'Dutch - The Netherlands' language. - Author: Bert Janssen -*/ -(function ($) { - -$.extend(true, $.hik.jtable.prototype.options.messages, { -serverCommunicationError: 'Fout bij het communiceren met de server', -loadingMessage: 'Laden...', -noDataAvailable: 'Geen gegevens beschikbaar!', -addNewRecord: '+ Toevoegen', -editRecord: 'Bewerken', -areYouSure: 'Weet u het zeker?', -deleteConfirmation: 'Gegevens verwijderen?', -save: 'Opslaan', -saving: 'Gegevens opslaan', -cancel: 'Annuleren', -deleteText: 'Wissen', -deleting: 'Gegevens wissen', -error: 'Er is een fout opgetreden!', -close: 'Sluiten', -cannotLoadOptionsFor: 'Kan de instellingen voor {0} niet laden', -pagingInfo: 'Pagina {0} tot {1} van {2}', -canNotDeletedRecords: 'Kan gegevens {0} van {1} niet wissen!', -deleteProggress: 'Gegevens {0} van {1} wissen...', -pageSizeChangeLabel: 'Row count', //New. Must be localized. -gotoPageLabel: 'Go to page' //New. Must be localized. -}); - -})(jQuery); http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/localization/jquery.jtable.no.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/localization/jquery.jtable.no.js b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/localization/jquery.jtable.no.js deleted file mode 100644 index c342cbb..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/localization/jquery.jtable.no.js +++ /dev/null @@ -1,30 +0,0 @@ -/* -jTable localization file for 'Norwegian' language. -Author: Tobias Flatin -*/ -(function ($) { - -$.extend(true, $.hik.jtable.prototype.options.messages, { -serverCommunicationError: 'En feil oppsto i kommunikasjonen med serveren.', -loadingMessage: 'Laster...', -noDataAvailable: 'Ingen data', -addNewRecord: 'Legg til ny post', -editRecord: 'Rediger post', -areYouSure: 'Er du sikker?', -deleteConfirmation: 'Denne posten kommer Ã¥ slettes. Er du sikker?', -save: 'Lagre', -saving: 'Lagrer...', -cancel: 'Avbryt', -deleteText: 'Slett', -deleting: 'Sletter...', -
[21/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-2.2.4.min.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-2.2.4.min.js b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-2.2.4.min.js deleted file mode 100644 index 4024b66..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-2.2.4.min.js +++ /dev/null @@ -1,4 +0,0 @@ -/*! jQuery v2.2.4 | (c) jQuery Foundation | jquery.org/license */ -!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="2.2.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this ,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&(c)?c:[]):f=c&(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&===a.window},isNumeric:function(a){va r b=a&();return!n.isArray(a)&(b)+1>=0},isPlainObject:function(a){var b;if("object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype||{},"isPrototypeOf"))return!1;for(b in a);return void 0===b||k.call(a,b)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=d.createElement("script"),b.text=a,d.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+""). replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:h.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&(e);else for(g in a)e=b(a[g],g,c),null!=e&(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(d=e.call(arguments,2),f=function(){return a.apply(b||this,d.concat(e.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[obj ect "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&>0& in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var
[15/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/jquery-ui.min.css -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/jquery-ui.min.css b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/jquery-ui.min.css deleted file mode 100644 index 776e259..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/jquery-ui.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! jQuery UI - v1.12.1 - 2016-09-14 -* http://jqueryui.com -* Includes: core.css, accordion.css, autocomplete.css, menu.css, button.css, controlgroup.css, checkboxradio.css, datepicker.css, dialog.css, draggable.css, resizable.css, progressbar.css, selectable.css, selectmenu.css, slider.css, sortable.css, spinner.css, tabs.css, tooltip.css, theme.css -* To view and modify this theme, visit http://jqueryui.com/themeroller/?bgShadowXPosurl(%22images%2Fui-icons_55_256x240.png%22)=url(%22images%2Fui-icons_777620_256x240.png%22)=url(%22images%2Fui-icons_44_256x240.png%22)=url(%22images%2Fui-icons_cc_256x240.png%22)=url(%22images%2Fui-icons_77_256x240.png%22)=url(%22images%2Fui-icons_44_256x240.png%22)=url(%22images%2Fui-icons_ff_256x240.png%22)= or=Alpha(Opacity%3D30)=Alpha(Opacity%3D30)=30=30=%2355=%23777620=%2344=%23cc=%2377=%2344=%23ff=0=0=95=55=75=75=65=75=75=flat=flat=flat=flat=flat=flat=flat=flat=flat=3px=normal=Arial%2CHelvetica%2Csans-serif=1em=8px=5px=0px=0px=.3=%2366=.3 erlay=%23aa=%235f3f3f=%23f1a899=%23fddfdf=%23777620=%23dad55e=%23fffa90=%2333=%23dd=%23ff=%2333=%23dd=%23e9e9e9=%23ff=%23003eff=%23007fff=%232b2b2b=%23cc=%23ededed=%23454545=%23c5c5c5=%23f6f6f6 -* Copyright jQuery Foundation and other contributors; Licensed MIT */ - -.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important;pointer-events:none}.ui-icon{display:inline-block;vertical-align:middle;margin-top:-.25em;position:relative;text-indent:-9px;overflow:hidden;background-repeat:no-repeat}.ui-widget-icon-block{left:50%;margin-left:-8px;display:block}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-accordion .ui-accordion-header{display:block;cursor:pointer;position:relative;margin:2px 0 0 0;padding:.5em .5em .5em .7em;font-size:100%}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:0}.ui-menu .ui-menu{position:absolute}.ui-menu .ui-menu-item{margin:0;cursor:pointer;list-style-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAP///yH5BAEALAABAAEAAAIBRAA7")}.ui-menu .ui-menu-item-wrapper{position:relative;padding:3px 1em 3px .4em}.ui-menu .ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-state-focus,.ui-menu .ui-state-active{margin:-1px}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item-wrapper{padding-left:2em}.ui-menu .ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.ui-menu .ui-menu-icon{left:auto;right:0}.ui-button{padding:.4em 1em;display:inline-block;position:relative;line-height:normal;margin-right:.1em;cursor:poi nter;vertical-align:middle;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:visible}.ui-button,.ui-button:link,.ui-button:visited,.ui-button:hover,.ui-button:active{text-decoration:none}.ui-button-icon-only{width:2em;box-sizing:border-box;text-indent:-px;white-space:nowrap}input.ui-button.ui-button-icon-only{text-indent:0}.ui-button-icon-only .ui-icon{position:absolute;top:50%;left:50%;margin-top:-8px;margin-left:-8px}.ui-button.ui-icon-notext .ui-icon{padding:0;width:2.1em;height:2.1em;text-indent:-px;white-space:nowrap}input.ui-button.ui-icon-notext .ui-icon{width:auto;height:auto;text-indent:0;white-space:normal;padding:.4em 1em}input.ui-button::-moz-focus-inner,button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-controlgroup{vertical-align:middle;display:inline-block}.ui-controlgroup > .ui-controlgroup-item{float:left;margin-left:0;margin-right:0}.ui-controlgroup >
[46/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
Fixed the catalog editor. Support using a branch Project: http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/commit/7ccfa3aa Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/tree/7ccfa3aa Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/diff/7ccfa3aa Branch: refs/heads/master Commit: 7ccfa3aa83376bf79ac931f2d4cced4bad0e8341 Parents: 3b40bf6 Author: Ralph GoersAuthored: Sun Apr 8 09:49:04 2018 -0700 Committer: Ralph Goers Committed: Sun Apr 8 09:49:04 2018 -0700 -- .../log4j/catalog/config/WebMvcAppContext.java |85 +- .../src/main/resources/application.properties | 6 + .../src/main/resources/static/css/app.css | 205 + .../resources/static/images/ajax-loader.gif | Bin 0 -> 3208 bytes .../main/resources/static/images/attributes.png | Bin 0 -> 1981 bytes .../main/resources/static/images/constraint.png | Bin 0 -> 2586 bytes .../src/main/resources/static/js/app.js |81 + .../src/main/resources/static/js/attributes.js | 364 + .../src/main/resources/static/js/categories.js | 257 + .../src/main/resources/static/js/events.js | 291 + .../resources/static/js/jquery-1.12.4.min.js| 5 + .../resources/static/js/jquery-2.2.4.min.js | 4 + .../resources/static/js/jquery-3.2.1.min.js | 4 + .../static/js/jquery-ui-1.12.1/AUTHORS.txt | 333 + .../static/js/jquery-ui-1.12.1/LICENSE.txt |43 + .../jquery-ui-1.12.1/external/jquery/jquery.js | 11008 ++ .../images/ui-icons_44_256x240.png | Bin 0 -> 7006 bytes .../images/ui-icons_55_256x240.png | Bin 0 -> 7074 bytes .../images/ui-icons_777620_256x240.png | Bin 0 -> 4676 bytes .../images/ui-icons_77_256x240.png | Bin 0 -> 7013 bytes .../images/ui-icons_cc_256x240.png | Bin 0 -> 4632 bytes .../images/ui-icons_ff_256x240.png | Bin 0 -> 6313 bytes .../static/js/jquery-ui-1.12.1/index.html | 559 + .../static/js/jquery-ui-1.12.1/jquery-ui.css| 1312 ++ .../static/js/jquery-ui-1.12.1/jquery-ui.js | 18706 + .../js/jquery-ui-1.12.1/jquery-ui.min.css | 7 + .../static/js/jquery-ui-1.12.1/jquery-ui.min.js |13 + .../js/jquery-ui-1.12.1/jquery-ui.structure.css | 886 + .../jquery-ui.structure.min.css | 5 + .../js/jquery-ui-1.12.1/jquery-ui.theme.css | 443 + .../js/jquery-ui-1.12.1/jquery-ui.theme.min.css | 5 + .../static/js/jquery-ui-1.12.1/package.json |74 + .../jquery.jtable.aspnetpagemethods.js | 150 + .../jquery.jtable.aspnetpagemethods.min.js |27 + .../static/js/jtable.2.4.0/external/json2.js| 486 + .../js/jtable.2.4.0/external/json2.min.js | 8 + .../static/js/jtable.2.4.0/jquery.jtable.js | 5021 + .../static/js/jtable.2.4.0/jquery.jtable.min.js | 157 + .../localization/jquery.jtable.bd.js|30 + .../localization/jquery.jtable.ca.js|30 + .../localization/jquery.jtable.cz.js|30 + .../localization/jquery.jtable.de.js|30 + .../localization/jquery.jtable.es.js|30 + .../localization/jquery.jtable.fa.js|30 + .../localization/jquery.jtable.fr.js|30 + .../localization/jquery.jtable.hr.js|30 + .../localization/jquery.jtable.hu.js|30 + .../localization/jquery.jtable.id.js|31 + .../localization/jquery.jtable.it.js|30 + .../localization/jquery.jtable.lt.js|30 + .../localization/jquery.jtable.nl-NL.js |30 + .../localization/jquery.jtable.no.js|30 + .../localization/jquery.jtable.pl.js|30 + .../localization/jquery.jtable.pt-BR.js |30 + .../localization/jquery.jtable.pt-PT.js |29 + .../localization/jquery.jtable.ro.js|30 + .../localization/jquery.jtable.ru.js|31 + .../localization/jquery.jtable.se.js|30 + .../localization/jquery.jtable.tr.js|30 + .../localization/jquery.jtable.vi.js|28 + .../localization/jquery.jtable.zh-CN.js |30 + .../js/jtable.2.4.0/themes/basic/close.png | Bin 0 -> 3350 bytes .../js/jtable.2.4.0/themes/basic/column-asc.png | Bin 0 -> 362 bytes .../jtable.2.4.0/themes/basic/column-desc.png | Bin 0 -> 349 bytes .../themes/basic/column-sortable.png| Bin 0 -> 347 bytes .../js/jtable.2.4.0/themes/basic/delete.png | Bin 0 -> 150 bytes .../js/jtable.2.4.0/themes/basic/edit.png | Bin 0 -> 590 bytes .../jtable.2.4.0/themes/basic/jtable_basic.css | 282 + .../jtable.2.4.0/themes/basic/jtable_basic.less |
[12/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/external/json2.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/external/json2.js b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/external/json2.js deleted file mode 100644 index e259f5e..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/external/json2.js +++ /dev/null @@ -1,486 +0,0 @@ -/* -json2.js -2012-10-08 - -Public Domain. - -NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. - -See http://www.JSON.org/js.html - - -This code should be minified before deployment. -See http://javascript.crockford.com/jsmin.html - -USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO -NOT CONTROL. - - -This file creates a global JSON object containing two methods: stringify -and parse. - -JSON.stringify(value, replacer, space) -value any JavaScript value, usually an object or array. - -replaceran optional parameter that determines how object -values are stringified for objects. It can be a -function or an array of strings. - -space an optional parameter that specifies the indentation -of nested structures. If it is omitted, the text will -be packed without extra whitespace. If it is a number, -it will specify the number of spaces to indent at each -level. If it is a string (such as '\t' or ''), -it contains the characters used to indent at each level. - -This method produces a JSON text from a JavaScript value. - -When an object value is found, if the object contains a toJSON -method, its toJSON method will be called and the result will be -stringified. A toJSON method does not serialize: it returns the -value represented by the name/value pair that should be serialized, -or undefined if nothing should be serialized. The toJSON method -will be passed the key associated with the value, and this will be -bound to the value - -For example, this would serialize Dates as ISO strings. - -Date.prototype.toJSON = function (key) { -function f(n) { -// Format integers to have at least two digits. -return n < 10 ? '0' + n : n; -} - -return this.getUTCFullYear() + '-' + - f(this.getUTCMonth() + 1) + '-' + - f(this.getUTCDate()) + 'T' + - f(this.getUTCHours()) + ':' + - f(this.getUTCMinutes()) + ':' + - f(this.getUTCSeconds()) + 'Z'; -}; - -You can provide an optional replacer method. It will be passed the -key and value of each member, with this bound to the containing -object. The value that is returned from your method will be -serialized. If your method returns undefined, then the member will -be excluded from the serialization. - -If the replacer parameter is an array of strings, then it will be -used to select the members to be serialized. It filters the results -such that only members with keys listed in the replacer array are -stringified. - -Values that do not have JSON representations, such as undefined or -functions, will not be serialized. Such values in objects will be -dropped; in arrays they will be replaced with null. You can use -a replacer function to replace those with JSON values. -JSON.stringify(undefined) returns undefined. - -The optional space parameter produces a stringification of the -value that is filled with line breaks and indentation to make it -easier to read. - -If the space parameter is a non-empty string, then that string will -be used for indentation. If the space parameter is a number, then -the indentation will be that many spaces. - -Example: - -text = JSON.stringify(['e', {pluribus: 'unum'}]); -// text is '["e",{"pluribus":"unum"}]' - - -text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t'); -// text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]' - -text = JSON.stringify([new Date()], function (key, value) { -return this[key] instanceof Date ? -'Date(' + this[key] + ')'
[02/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/metro/lightgray/jtable.min.css -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/metro/lightgray/jtable.min.css b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/metro/lightgray/jtable.min.css deleted file mode 100644 index fe22943..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/metro/lightgray/jtable.min.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/DXI1ORHCpsQm3Vp6mXoaTRa1RVmPjeKy21_GQJaLlJI.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;src:local('Open Sans Light Italic'),local('OpenSansLight-Italic'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxrsuoFAk0leveMLeqYtnfAY.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/u-WUoqrET9fUeobQW7jkRT8E0i7KZn-EPnyo3HZu7kw.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/xjAJXh38I15wypJXxuGMBtIh4imgI8P11RFo6YPCPC0.woff ) format('woff')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/MTP_ySUJH_bn48VBG8sNSha1RVmPjeKy21_GQJaLlJI.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;src:local('Open Sans Semibold Italic'),local('OpenSans-SemiboldItalic'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxmWeb5PoA5ztb49yLyUzH1A.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/k3k702ZOKiLJc3WVjuplzBa1RVmPjeKy21_GQJaLlJI.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRm iXeptR36kaC0GEAetxoUt79146ZFaIJxILcpzmhI.woff) format('woff')}div.jtable-main-container{position:relative}div.jtable-main-container div.jtable-title{position:relative;text-align:left}div.jtable-main-container div.jtable-title .jtable-close-button{right:0;top:0;bottom:0;position:absolute}div.jtable-main-container div.jtable-title div.jtable-toolbar{bottom:0;right:0;position:absolute;display:inline-block;margin-right:5px}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item{position:relative;display:inline-block;margin:0 0 0 5px;cursor:pointer;font-size:.9em;padding:2px;vertical-align:bottom}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-icon{display:inline-block;margin:2px;vertical-align:middle;width:16px;height:16px}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-text{display:inline-block;margin:2px;vertical-align:middle}di v.jtable-main-container div.jtable-title .jtable-close-button+div.jtable-toolbar{margin-right:30px}div.jtable-main-container table.jtable{width:100%}div.jtable-main-container table.jtable thead th{vertical-align:middle;text-align:left}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container{position:relative}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container span.jtable-column-header-text{display:inline-block}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container div.jtable-column-resize-handler{position:absolute;height:24px;width:8px;right:-8px;top:-2px;z-index:2;cursor:col-resize}div.jtable-main-container table.jtable thead th.jtable-command-column-header{text-align:center}div.jtable-main-container table.jtable thead th.jtable-column-header-selecting{text-align:center;width:1%}div.jtable-main-container table.jtable thead th.jtable-col umn-header-selecting input{cursor:pointer}div.jtable-main-container table.jtable thead th.jtable-column-header-sortable{cursor:pointer}div.jtable-main-container table.jtable tbody tr>td
[40/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_44_256x240.png -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_44_256x240.png b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_44_256x240.png new file mode 100644 index 000..c2daae1 Binary files /dev/null and b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_44_256x240.png differ http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_55_256x240.png -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_55_256x240.png b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_55_256x240.png new file mode 100644 index 000..4784928 Binary files /dev/null and b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_55_256x240.png differ http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_777620_256x240.png -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_777620_256x240.png b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_777620_256x240.png new file mode 100644 index 000..d2f58d2 Binary files /dev/null and b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_777620_256x240.png differ http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_77_256x240.png -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_77_256x240.png b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_77_256x240.png new file mode 100644 index 000..1d53258 Binary files /dev/null and b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_77_256x240.png differ http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_cc_256x240.png -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_cc_256x240.png b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_cc_256x240.png new file mode 100644 index 000..2825f20 Binary files /dev/null and b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_cc_256x240.png differ http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_ff_256x240.png -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_ff_256x240.png b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_ff_256x240.png new file mode 100644 index 000..136a4f9 Binary files /dev/null and b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/images/ui-icons_ff_256x240.png differ http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/index.html -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/index.html b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/index.html new file mode 100644 index 000..1796b1c --- /dev/null +++ b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/index.html @@ -0,0 +1,559 @@ + + + + + jQuery UI Example Page + + + body{ + font-family: "Trebuchet MS",
[2/2] logging-log4j2 git commit: LOG4J2-1802: Convert intro manual page to asciidoc
LOG4J2-1802: Convert intro manual page to asciidoc Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/59f34d76 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/59f34d76 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/59f34d76 Branch: refs/heads/master Commit: 59f34d7688750976cf9006691b701852b005d74d Parents: 09c204a Author: Matt SickerAuthored: Sun Apr 8 13:40:39 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 13:40:39 2018 -0500 -- src/site/asciidoc/manual/index.adoc | 138 src/site/xdoc/manual/index.xml | 150 --- 2 files changed, 138 insertions(+), 150 deletions(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/59f34d76/src/site/asciidoc/manual/index.adoc -- diff --git a/src/site/asciidoc/manual/index.adoc b/src/site/asciidoc/manual/index.adoc new file mode 100644 index 000..746607f --- /dev/null +++ b/src/site/asciidoc/manual/index.adoc @@ -0,0 +1,138 @@ + +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + +https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + += Overview +Ralph Goers + +== Welcome to Log4j! + +Almost every large application includes its own logging or tracing API. +In conformance with this rule, the E.U. http://www.semper.org[SEMPER] +project decided to write its own tracing API. This was in early 1996. +After countless enhancements, several incarnations and much work that +API has evolved to become log4j, a popular logging package for Java. The +package is distributed under the link:../LICENSE[Apache Software +License], a fully-fledged open source license certified by the +http://www.opensource.org[open source] initiative. The latest log4j +version, including full-source code, class files and documentation can +be found at +https://logging.apache.org/log4j/2.x/index.html[*https://logging.apache.org/log4j/2.x/index.html*]. + +Inserting log statements into code is a low-tech method for debugging +it. It may also be the only way because debuggers are not always +available or applicable. This is usually the case for multithreaded +applications and distributed applications at large. + +Experience indicates that logging was an important component of the +development cycle. It offers several advantages. It provides precise +_context_ about a run of the application. Once inserted into the code, +the generation of logging output requires no human intervention. +Moreover, log output can be saved in persistent medium to be studied at +a later time. In addition to its use in the development cycle, a +sufficiently rich logging package can also be viewed as an auditing +tool. + +As Brian W. Kernighan and Rob Pike put it in their truly excellent book +_"The Practice of Programming":_ + + +As personal choice, we tend not to use debuggers beyond getting a stack +trace or the value of a variable or two. One reason is that it is easy +to get lost in details of complicated data structures and control flow; +we find stepping through a program less productive than thinking harder +and adding output statements and self-checking code at critical places. +Clicking over statements takes longer than scanning the output of +judiciously-placed displays. It takes less time to decide where to put +print statements than to single-step to the critical section of code, +even assuming we know where that is. More important, debugging +statements stay with the program; debugging sessions are transient. +d + +Logging does have its drawbacks. It can slow down an application. If too +verbose, it can cause scrolling blindness. To alleviate these concerns, +log4j is designed to be reliable, fast and extensible. Since logging is +rarely the main focus of an application, the log4j API strives to be +simple to understand and to use. + +== Log4j 2 + +Log4j 1.x has been widely adopted and used in many applications. +However, through the years
[5/7] logging-log4j2 git commit: Fix table headers and table display
Fix table headers and table display Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/de9e42e6 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/de9e42e6 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/de9e42e6 Branch: refs/heads/master Commit: de9e42e6aa956101c5bc21630d87a051bc0d8795 Parents: a6744a6 Author: Matt SickerAuthored: Sun Apr 8 15:09:04 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 16:03:36 2018 -0500 -- src/site/asciidoc/faq.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/de9e42e6/src/site/asciidoc/faq.adoc -- diff --git a/src/site/asciidoc/faq.adoc b/src/site/asciidoc/faq.adoc index d9a4629..71278a5 100644 --- a/src/site/asciidoc/faq.adoc +++ b/src/site/asciidoc/faq.adoc @@ -59,7 +59,7 @@ shows for each Log4j dependency on the left (implicit groupId of `org.apache.logging.log4j`), the following dependencies on the right can be safely excluded (given in the format `groupId:artifactId`). -[cols="4*"] +[cols="4*m",options="header"] |=== |Log4j Dependency 3+|Dependencies to Exclude
[7/7] logging-log4j2 git commit: LOG4J2-1802: Convert programmatic config manual page to asciidoc
LOG4J2-1802: Convert programmatic config manual page to asciidoc Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/77a3712d Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/77a3712d Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/77a3712d Branch: refs/heads/master Commit: 77a3712df0364e73ae5aa7bbfaaab58c2f738efb Parents: de9e42e Author: Matt SickerAuthored: Sun Apr 8 15:22:57 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 16:03:36 2018 -0500 -- src/site/asciidoc/manual/customconfig.adoc | 386 src/site/xdoc/manual/customconfig.xml | 375 --- 2 files changed, 386 insertions(+), 375 deletions(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/77a3712d/src/site/asciidoc/manual/customconfig.adoc -- diff --git a/src/site/asciidoc/manual/customconfig.adoc b/src/site/asciidoc/manual/customconfig.adoc new file mode 100644 index 000..7f4c9ea --- /dev/null +++ b/src/site/asciidoc/manual/customconfig.adoc @@ -0,0 +1,386 @@ + +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + +https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + += Programmatic Configuration +Ralph Goers + +Log4j 2 provides a few ways for applications to create their own +programmatic configuration: + +* Specify a custom `ConfigurationFactory` to start Log4j with a +programmatic configuration +* Use the `Configurator` to replace the configuration after Log4j started +* Initialize Log4j with a combination of a configuration file and +programmatic configuration +* Modify the current `Configuration` after initialization + +[#ConfigurationBuilder] +== The ConfigurationBuilder API + +Starting with release 2.4, Log4j provides a `ConfigurationBuilder` and a +set of component builders that allow a `Configuration` to be created +fairly easily. Actual configuration objects like `LoggerConfig` or +`Appender` can be unwieldy; they require a lot of knowledge about Log4j +internals which makes them difficult to work with if all you want is to +create a `Configuration`. + +The new `ConfigurationBuilder` API (in the +`org.apache.logging.log4j.core.config.builder.api` package) allows users +to create Configurations in code by constructing component +_definitions_. There is no need to work directly with actual +configuration objects. Component definitions are added to the +`ConfigurationBuilder`, and once all the definitions have been collected +all the actual configuration objects (like Loggers and Appenders) are +constructed. + +`ConfigurationBuilder` has convenience methods for the base components +that can be configured such as Loggers, Appenders, Filter, Properties, +etc. However, Log4j 2's plugin mechanism means that users can create any +number of custom components. As a trade-off, the `ConfigurationBuilder` +API provides only a limited number of "strongly typed" convenience +methods like `newLogger()`, `newLayout()` etc. The generic +`builder.newComponent()` method can be used if no convenience method +exists for the component you want to configure. + +For example, the builder does not know what sub-components can be +configured on specific components such as the RollingFileAppender vs. +the RoutingAppender. To specify a triggering policy on a +RollingFileAppender you would use builder.newComponent(). + +Examples of using the `ConfigurationBuilder` API are in the sections that +follow. + +[#ConfigurationFactory] +== Understanding ConfigurationFactory + +During initialization, Log4j 2 will search for available +link:extending.html#ConfigurationFactory[ConfigurationFactories] and +then select the one to use. The selected `ConfigurationFactory` creates +the `Configuration` that Log4j will use. Here is how Log4j finds the +available ConfigurationFactories: + +1. A system property named `log4j2.configurationFactory` can be set +with the name of the ConfigurationFactory to be used. +2.
[1/7] logging-log4j2 git commit: LOG4J2-1802: Convert webapps manual page to asciidoc
Repository: logging-log4j2 Updated Branches: refs/heads/master d7f2fd7d4 -> db18f5ada LOG4J2-1802: Convert webapps manual page to asciidoc Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/db18f5ad Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/db18f5ad Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/db18f5ad Branch: refs/heads/master Commit: db18f5ada1c2141a1d9531b0186855dcbd66991e Parents: fa0135e Author: Matt SickerAuthored: Sun Apr 8 16:03:25 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 16:03:36 2018 -0500 -- src/site/asciidoc/manual/webapp.adoc | 486 ++ src/site/xdoc/manual/webapp.xml | 451 --- 2 files changed, 486 insertions(+), 451 deletions(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/db18f5ad/src/site/asciidoc/manual/webapp.adoc -- diff --git a/src/site/asciidoc/manual/webapp.adoc b/src/site/asciidoc/manual/webapp.adoc new file mode 100644 index 000..8a864d5 --- /dev/null +++ b/src/site/asciidoc/manual/webapp.adoc @@ -0,0 +1,486 @@ + +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + +https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + += Web Applications +Nick Williams ; Matt Sicker + +== Using Log4j 2 in Web Applications + +You must take particular care when using Log4j or any other logging +framework within a Java EE web application. It's important for logging +resources to be properly cleaned up (database connections closed, files +closed, etc.) when the container shuts down or the web application is +undeployed. Because of the nature of class loaders within web +applications, Log4j resources cannot be cleaned up through normal means. +Log4j must be "started" when the web application deploys and "shut down" +when the web application undeploys. How this works varies depending on +whether your application is a link:#Servlet-3.0[Servlet 3.0 or newer] or +link:#Servlet-2.5[Servlet 2.5] web application. + +In either case, you'll need to add the `log4j-web` module to your +deployment as detailed in the link:../maven-artifacts.html[Maven, Ivy, +and Gradle Artifacts] manual page. + +NOTE: To avoid problems the Log4j shutdown hook will automatically be +disabled when the log4j-web jar is included. + +[#Configuration] +== Configuration + +Log4j allows the configuration file to be specified in web.xml using the +`log4jConfiguration` context parameter. Log4j will search for +configuration files by: + +1. If a location is provided it will be searched for as a servlet +context resource. For example, if `log4jConfiguration` contains +"logging.xml" then Log4j will look for a file with that name in the root +directory of the web application. +2. If no location is defined Log4j will search for a file that starts +with "log4j2" in the WEB-INF directory. If more than one file is found, +and if a file that starts with "log4j2-name" is present, where name is +the name of the web application, then it will be used. Otherwise the +first file will be used. +3. The "normal" search sequence using the classpath and file URLs will +be used to locate the configuration file. + +[#Servlet-3.0] +== Servlet 3.0 and Newer Web Applications + +A Servlet 3.0 or newer web application is any `` whose +`version` attribute has a value of "3.0" or higher. Of course, the +application must also be running in a compatible web container. Some +examples are: Tomcat 7.0 and higher, GlassFish 3.0 and higher, JBoss 7.0 +and higher, Oracle WebLogic 12c and higher, and IBM WebSphere 8.0 and +higher. + +=== The Short Story + +Log4j 2 "just works" in Servlet 3.0 and newer web applications. It is +capable of automatically starting when the application deploys and +shutting down when the application undeploys. Thanks to the
[2/7] logging-log4j2 git commit: LOG4J2-1802: Convert extending Log4j manual page to asciidoc
LOG4J2-1802: Convert extending Log4j manual page to asciidoc Also has some documentation fixes Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/7b4493f2 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/7b4493f2 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/7b4493f2 Branch: refs/heads/master Commit: 7b4493f2205b997741b0a3b06eca214dcbeee459 Parents: 77a3712 Author: Matt SickerAuthored: Sun Apr 8 15:46:28 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 16:03:36 2018 -0500 -- src/site/asciidoc/manual/extending.adoc | 624 +++ src/site/xdoc/manual/extending.xml | 565 2 files changed, 624 insertions(+), 565 deletions(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/7b4493f2/src/site/asciidoc/manual/extending.adoc -- diff --git a/src/site/asciidoc/manual/extending.adoc b/src/site/asciidoc/manual/extending.adoc new file mode 100644 index 000..db5a6f9 --- /dev/null +++ b/src/site/asciidoc/manual/extending.adoc @@ -0,0 +1,624 @@ + +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + +https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + += Extending Log4j 2 +Ralph Goers + +Log4j 2 provides numerous ways that it can be manipulated and extended. +This section includes an overview of the various ways that are directly +supported by the Log4j 2 implementation. + +[#LoggerContextFactory] +== LoggerContextFactory + +The `LoggerContextFactory` binds the Log4j API to its implementation. +The Log4j `LogManager` locates a `LoggerContextFactory` by using +java.util.ServiceLoader to locate all instances of +`org.apache.logging.log4j.spi.Provider`. Each implementation must +provide a class that extends`org.apache.logging.log4j.spi.Provider` and +should have a no-arg constructor that delegates to Provider's +constructor passing the Priority, the API versions it is compatible +with, and the class that implements +`org.apache.logging.log4j.spi.LoggerContextFactory`. Log4j will compare +the current API version and if it is compatible the implementation will +be added to the list of providers. The API version in +`org.apache.logging.log4j.LogManager` is only changed when a feature is +added to the API that implementations need to be aware of. If more than +one valid implementation is located the value for the Priority will be +used to identify the factory with the highest priority. Finally, the +class that implements +`org.apache.logging.log4j.spi.LoggerContextFactory` will be instantiated +and bound to the LogManager. In Log4j 2 this is provided by +`Log4jContextFactory`. + +Applications may change the LoggerContextFactory that will be used by + +1. Create a binding to the logging implementation. +.. Implement a new `LoggerContextFactory`. +.. Implement a class that extends `org.apache.logging.spi.Provider.` +with a no-arg constructor that calls super-class's constructor with the +Priority, the API version(s), `LoggerContextFactory` class, and +optionally, a `ThreadContextMap` implementation class. +.. Create a `META-INF/services/org.apache.logging.spi.Provider` file +that contains the name of the class that implements +`org.apache.logging.spi.Provider`. +2. Setting the system property log4j2.loggerContextFactory to the name +of the `LoggerContextFactory` class to use. +3. Setting the property "log4j2.loggerContextFactory" in a properties +file named "log4j2.LogManager.properties" to the name of the +LoggerContextFactory class to use. The properties file must be on the +classpath. + +[#ContextSelector] +== ContextSelector + +ContextSelectors are called by the +link:../log4j-core/apidocs/org/apache/logging/log4j/core/impl/Log4jContextFactory.html[Log4j +LoggerContext factory]. They perform the actual work of locating or +creating a LoggerContext, which is the anchor for Loggers and their +configuration. ContextSelectors are free to implement any mechanism
[4/7] logging-log4j2 git commit: LOG4J2-1802: Convert log4j 1.x migration page to asciidoc
LOG4J2-1802: Convert log4j 1.x migration page to asciidoc Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/8dea0f4f Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/8dea0f4f Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/8dea0f4f Branch: refs/heads/master Commit: 8dea0f4fb1eef58b266874e5b14cf3955f4d739e Parents: d7f2fd7 Author: Matt SickerAuthored: Sun Apr 8 14:47:56 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 16:03:36 2018 -0500 -- src/site/asciidoc/manual/migration.adoc | 359 +++ src/site/xdoc/manual/migration.xml | 351 -- 2 files changed, 359 insertions(+), 351 deletions(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/8dea0f4f/src/site/asciidoc/manual/migration.adoc -- diff --git a/src/site/asciidoc/manual/migration.adoc b/src/site/asciidoc/manual/migration.adoc new file mode 100644 index 000..9d217b4 --- /dev/null +++ b/src/site/asciidoc/manual/migration.adoc @@ -0,0 +1,359 @@ += Migrating from Log4j 1.x +Ralph Goers + +[#Log4j1.2Bridge] +== Using the Log4j 1.x bridge + +Perhaps the simplest way to convert to using Log4j 2 is to replace the +log4j 1.x jar file with Log4j 2's `log4j-1.2-api.jar`. However, to use +this successfully applications must meet the following requirements: + +1. They must not access methods and classes internal to the Log4j 1.x +implementation such as `Appender`s, `LoggerRepository` or `Category`'s +`callAppenders` method. +2. They must not programmatically configure Log4j. +3. They must not configure by calling the classes `DOMConfigurator` or +`PropertyConfigurator`. + +== Converting to the Log4j 2 API + +For the most part, converting from the Log4j 1.x API to Log4j 2 should +be fairly simple. Many of the log statements will require no +modification. However, where necessary the following changes must be +made. + +. The main package in version 1 is `org.apache.log4j`, in version 2 it +is `org.apache.logging.log4j` +. Calls to `org.apache.log4j.Logger.getLogger()` must be modified to +`org.apache.logging.log4j.LogManager.getLogger()`. +. Calls to `org.apache.log4j.Logger.getRootLogger()` or +`org.apache.log4j.LogManager.getRootLogger()` must be replaced with +`org.apache.logging.log4j.LogManager.getRootLogger()`. +. Calls to `org.apache.log4j.Logger.getLogger` that accept a +`LoggerFactory` must remove the `org.apache.log4j.spi.LoggerFactory` and +use one of Log4j 2's other extension mechanisms. +. Replace calls to `org.apache.log4j.Logger.getEffectiveLevel()` with +`org.apache.logging.log4j.Logger.getLevel()`. +. Remove calls to `org.apache.log4j.LogManager.shutdown()`, they are +not needed in version 2 because the Log4j Core now automatically adds a +JVM shutdown hook on start up to perform any Core clean ups. +.. Starting in Log4j 2.1, you can specify a custom +link:../log4j-core/apidocs/org/apache/logging/log4j/core/util/ShutdownCallbackRegistry.html[`ShutdownCallbackRegistry`] +to override the default JVM shutdown hook strategy. +.. Starting in Log4j 2.6, you can now use +`org.apache.logging.log4j.LogManager.shutdown()` to initiate shutdown +manually. +. Calls to `org.apache.log4j.Logger.setLevel()` or similar methods are +not supported in the API. Applications should remove these. Equivalent +functionality is provided in the Log4j 2 implementation classes, see +`org.apache.logging.log4j.core.config.Configurator.setLevel()`, but may +leave the application susceptible to changes in Log4j 2 internals. +. Where appropriate, applications should convert to use parameterized +messages instead of String concatenation. +. http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/MDC.html[`org.apache.log4j.MDC`] +and +http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/NDC.html[`org.apache.log4j.NDC`] +have been replaced by the link:thread-context.html[Thread Context]. + +== Configuring Log4j 2 + +Although the Log4j 2 configuration syntax is different than that of +Log4j 1.x, most, if not all, of the same functionality is available. + +Note that system property interpolation via the `${foo}` syntax has been +extended to allow property lookups from many different sources. See the +link:lookups.html[Lookups] documentation for more details. For example, +using a lookup for the system property named `catalina.base`, in Log4j +1.x, the syntax would be `${catalina.base}`. In Log4j 2, the syntax +would be `${sys:catalina.base}`. + +Log4j 1.x has a XMLLayout which is different from the XmlLayout in Log4j +2, the log4j-1.2-api module contains a `Log4j1XmlLayout` which produce +output in the
[3/7] logging-log4j2 git commit: LOG4J2-1802: Convert plugins manual page to asciidoc
LOG4J2-1802: Convert plugins manual page to asciidoc Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/a6744a65 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/a6744a65 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/a6744a65 Branch: refs/heads/master Commit: a6744a659cbbc2a0758fdade5fe3c2bc679fe34e Parents: 8dea0f4 Author: Matt SickerAuthored: Sun Apr 8 15:04:57 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 16:03:36 2018 -0500 -- src/site/asciidoc/manual/plugins.adoc | 262 + src/site/xdoc/manual/plugins.xml | 257 2 files changed, 262 insertions(+), 257 deletions(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/a6744a65/src/site/asciidoc/manual/plugins.adoc -- diff --git a/src/site/asciidoc/manual/plugins.adoc b/src/site/asciidoc/manual/plugins.adoc new file mode 100644 index 000..5b3a988 --- /dev/null +++ b/src/site/asciidoc/manual/plugins.adoc @@ -0,0 +1,262 @@ + +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + +https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + += Plugins +Ralph Goers ; Matt Sicker + +Log4j 1.x allowed for extension by requiring class attributes on most of +the configuration declarations. In the case of some elements, notably +the PatternLayout, the only way to add new pattern converters was to +extend the PatternLayout class and add them via code. One goal of Log4j +2 is to make extending it extremely easy through the use of plugins. + +In Log4j 2 a plugin is declared by adding a +link:../log4j-core/apidocs/org/apache/logging/log4j/core/config/plugins/Plugin.html[`@Plugin`] +annotation to the class declaration. During initialization the +link:../log4j-core/apidocs/org/apache/logging/log4j/core/config/Configuration.html[`Configuration`] +will invoke the +link:../log4j-core/apidocs/org/apache/logging/log4j/core/config/plugins/util/PluginManager.html[`PluginManager`] +to load the built-in Log4j plugins as well as any custom plugins. The +`PluginManager` locates plugins by looking in five places: + +1. Serialized plugin listing files on the classpath. These files are +generated automatically during the build (more details below). +2. (OSGi only) Serialized plugin listing files in each active OSGi +bundle. A `BundleListener` is added on activation to continue checking +new bundles after `log4j-core` has started. +3. A comma-separated list of packages specified by the +`log4j.plugin.packages` system property. +4. Packages passed to the static `PluginManager.addPackages` method +(before Log4j configuration occurs). +5. The link:./configuration.html#ConfigurationSyntax[packages] declared +in your log4j2 configuration file. + +If multiple Plugins specify the same (case-insensitive) `name`, then the +load order above determines which one will be used. For example, to +override the `File` plugin which is provided by the built-in +`FileAppender` class, you would need to place your plugin in a JAR file +in the CLASSPATH ahead of`log4j-core.jar`. This is not recommended; +plugin name collisions will cause a warning to be emitted. Note that in +an OSGi environment, the order that bundles are scanned for plugins +generally follows the same order that bundles were installed into the +framework. See +http://www.osgi.org/javadoc/r5/core/org/osgi/framework/BundleContext.html#getBundles()[`getBundles()`] +and +http://www.osgi.org/javadoc/r5/core/org/osgi/framework/SynchronousBundleListener.html[`SynchronousBundleListener`]. +In short, name collisions are even more unpredictable in an OSGi environment. + +TODO: in future, plugins will be able to be annotated with @Order which can override priorities + + +Serialized plugin listing files are generated by an annotation processor +contained in the log4j-core artifact which will automatically scan your +code for Log4j 2 plugins and output
[6/7] logging-log4j2 git commit: LOG4J2-1802: Convert logging separation manual page to asciidoc
LOG4J2-1802: Convert logging separation manual page to asciidoc Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/fa0135e2 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/fa0135e2 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/fa0135e2 Branch: refs/heads/master Commit: fa0135e20a238cc22276e0a2a5c4b764359115f2 Parents: 7b4493f Author: Matt SickerAuthored: Sun Apr 8 15:49:45 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 16:03:36 2018 -0500 -- src/site/asciidoc/manual/logsep.adoc | 121 + src/site/xdoc/manual/logsep.xml | 123 -- 2 files changed, 121 insertions(+), 123 deletions(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/fa0135e2/src/site/asciidoc/manual/logsep.adoc -- diff --git a/src/site/asciidoc/manual/logsep.adoc b/src/site/asciidoc/manual/logsep.adoc new file mode 100644 index 000..ae52bc3 --- /dev/null +++ b/src/site/asciidoc/manual/logsep.adoc @@ -0,0 +1,121 @@ + +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + +https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + += Logging Separation +Ralph Goers + +There are many well known use cases where applications may share an +environment with other applications and each has a need to have its own, +separate logging environment. This purpose of this section is to discuss +some of these cases and ways to accomplish this. + +[#UseCases] +== Use Cases + +This section describes some of the use cases where Log4j could be used +and what its desired behavior might be. + +=== Standalone Application + +Standalone applications are usually relatively simple. They typically +have one bundled executable that requires only a single logging +configuration. + +=== Web Applications + +A typical web application will be packaged as a WAR file and will +include all of its dependencies in WEB-INF/lib and will have its +configuration file located in the class path or in a location configured +in the web.xml. Be sure to follow the link:webapp.html[instructions to +initialize Log4j 2 in a web application]. + +=== Java EE Applications + +A Java EE application will consist of one or more WAR files and possible +some EJBs, typically all packaged in an EAR file. Usually, it is +desirable to have a single configuration that applies to all the +components in the EAR. The logging classes will generally be placed in a +location shared across all the components and the configuration needs to +also be shareable. Be sure to follow the link:webapp.html[instructions +to initialize Log4j 2 in a web application]. + +=== "Shared" Web Applications and REST Service Containers + +In this scenario there are multiple WAR files deployed into a single +container. Each of the applications should use the same logging +configuration and share the same logging implementation across each of +the web applications. When writing to files and streams each of the +applications should share them to avoid the issues that can occur when +multiple components try to write to the same file(s) through different +File objects, channels, etc. + +=== OSGi Applications + +An OSGi container physically separates each JAR into its own +ClassLoader, thus enforcing modularity of JARs as well as providing +standardized ways for JARs to share code based on version numbers. +Suffice to say, the OSGi framework is beyond the scope of this manual. +There are some differences when using Log4j in an OSGi container. By +default, each JAR bundle is scanned for its own Log4j configuration +file. Similar to the web application paradigm, every bundle has its own +LoggerContext. As this may be undesirable when a global Log4j +configuration is wanted, then the +link:extending.html#ContextSelector[ContextSelector] should be +overridden with `BasicContextSelector` or `JndiContextSelector`. + +[#Approaches] +== Approaches + +=== The Simple Approach + +The
[45/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-1.12.4.min.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-1.12.4.min.js b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-1.12.4.min.js new file mode 100644 index 000..e836475 --- /dev/null +++ b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-1.12.4.min.js @@ -0,0 +1,5 @@ +/*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */ +!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="1.12.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(thi s,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&(a)?a:[]):f=a&(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!= a&==a.window},isNumeric:function(a){var b=a&();return!n.isArray(a)&(b)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(!l.ownFirst)for(b in a)return k.call(a,b);for(b in a);return void 0===b||k.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(b){b&(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){retur n null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(h)return h.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&(e);else for(g in a)e=b(a[g],g,c),null!=e&(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=e.call(arguments,2),d=function(){return a.apply(b||this,c.concat(e.call(arguments)))},d.guid=a.guid=a.guid||n.guid++,d):void 0},now:function(){return+new Date},support:l}),"fu nction"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&>0& in a}var t=function(a){var
[27/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/metro/crimson/jtable.min.css -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/metro/crimson/jtable.min.css b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/metro/crimson/jtable.min.css new file mode 100644 index 000..061cd16 --- /dev/null +++ b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/metro/crimson/jtable.min.css @@ -0,0 +1 @@ +@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/DXI1ORHCpsQm3Vp6mXoaTRa1RVmPjeKy21_GQJaLlJI.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;src:local('Open Sans Light Italic'),local('OpenSansLight-Italic'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxrsuoFAk0leveMLeqYtnfAY.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/u-WUoqrET9fUeobQW7jkRT8E0i7KZn-EPnyo3HZu7kw.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/xjAJXh38I15wypJXxuGMBtIh4imgI8P11RFo6YPCPC0.woff ) format('woff')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/MTP_ySUJH_bn48VBG8sNSha1RVmPjeKy21_GQJaLlJI.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;src:local('Open Sans Semibold Italic'),local('OpenSans-SemiboldItalic'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxmWeb5PoA5ztb49yLyUzH1A.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/k3k702ZOKiLJc3WVjuplzBa1RVmPjeKy21_GQJaLlJI.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRm iXeptR36kaC0GEAetxoUt79146ZFaIJxILcpzmhI.woff) format('woff')}div.jtable-main-container{position:relative}div.jtable-main-container div.jtable-title{position:relative;text-align:left}div.jtable-main-container div.jtable-title .jtable-close-button{right:0;top:0;bottom:0;position:absolute}div.jtable-main-container div.jtable-title div.jtable-toolbar{bottom:0;right:0;position:absolute;display:inline-block;margin-right:5px}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item{position:relative;display:inline-block;margin:0 0 0 5px;cursor:pointer;font-size:.9em;padding:2px;vertical-align:bottom}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-icon{display:inline-block;margin:2px;vertical-align:middle;width:16px;height:16px}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-text{display:inline-block;margin:2px;vertical-align:middle}di v.jtable-main-container div.jtable-title .jtable-close-button+div.jtable-toolbar{margin-right:30px}div.jtable-main-container table.jtable{width:100%}div.jtable-main-container table.jtable thead th{vertical-align:middle;text-align:left}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container{position:relative}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container span.jtable-column-header-text{display:inline-block}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container div.jtable-column-resize-handler{position:absolute;height:24px;width:8px;right:-8px;top:-2px;z-index:2;cursor:col-resize}div.jtable-main-container table.jtable thead th.jtable-command-column-header{text-align:center}div.jtable-main-container table.jtable thead th.jtable-column-header-selecting{text-align:center;width:1%}div.jtable-main-container table.jtable thead th.jtable-col umn-header-selecting input{cursor:pointer}div.jtable-main-container table.jtable thead th.jtable-column-header-sortable{cursor:pointer}div.jtable-main-container table.jtable tbody tr>td
[20/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-3.2.1.min.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-3.2.1.min.js b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-3.2.1.min.js deleted file mode 100644 index 644d35e..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-3.2.1.min.js +++ /dev/null @@ -1,4 +0,0 @@ -/*! jQuery v3.2.1 | (c) JS Foundation and other contributors | jquery.org/license */ -!function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){"use strict";var c=[],d=a.document,e=Object.getPrototypeOf,f=c.slice,g=c.concat,h=c.push,i=c.indexOf,j={},k=j.toString,l=j.hasOwnProperty,m=l.toString,n=m.call(Object),o={};function p(a,b){b=b||d;var c=b.createElement("script");c.text=a,b.head.appendChild(c).parentNode.removeChild(c)}var q="3.2.1",r=function(a,b){return new r.fn.init(a,b)},s=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,t=/^-ms-/,u=/-([a-z])/g,v=function(a,b){return b.toUpperCase()};r.fn=r.prototype={jquery:q,constructor:r,length:0,toArray:function(){return f.call(this)},get:function(a){return null==a?f.call(this):a<0?this[a+this.length]:this[a]},pushStack:function(a){var b=r.merge(this.constructor(),a);return b.prevObject=this,b},each:function(a){retu rn r.each(this,a)},map:function(a){return this.pushStack(r.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(f.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(a<0?b:0);return this.pushStack(c>=0&0& in a)}var x=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=function(a,b){for(var c=0,d=a.length;c
[2/2] logging-log4j2 git commit: Fix typo
Fix typo Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/04daf2a7 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/04daf2a7 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/04daf2a7 Branch: refs/heads/master Commit: 04daf2a7de0084e95eac1568dd9d6c2ebde688ac Parents: d39e475 Author: Matt SickerAuthored: Sun Apr 8 14:17:28 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 14:17:28 2018 -0500 -- src/site/asciidoc/manual/index.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/04daf2a7/src/site/asciidoc/manual/index.adoc -- diff --git a/src/site/asciidoc/manual/index.adoc b/src/site/asciidoc/manual/index.adoc index 746607f..a2313b2 100644 --- a/src/site/asciidoc/manual/index.adoc +++ b/src/site/asciidoc/manual/index.adoc @@ -59,7 +59,7 @@ judiciously-placed displays. It takes less time to decide where to put print statements than to single-step to the critical section of code, even assuming we know where that is. More important, debugging statements stay with the program; debugging sessions are transient. -d + Logging does have its drawbacks. It can slow down an application. If too verbose, it can cause scrolling blindness. To alleviate these concerns,
[1/2] logging-log4j2 git commit: LOG4J2-1802: Convert scala api manual page to asciidoc
Repository: logging-log4j2 Updated Branches: refs/heads/master 71b1f20f6 -> 04daf2a7d LOG4J2-1802: Convert scala api manual page to asciidoc Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/d39e4751 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/d39e4751 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/d39e4751 Branch: refs/heads/master Commit: d39e4751fbdad254138de44292aeea22a418eaad Parents: 71b1f20 Author: Matt SickerAuthored: Sun Apr 8 14:08:02 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 14:08:02 2018 -0500 -- src/site/asciidoc/manual/scala-api.adoc | 80 src/site/xdoc/manual/scala-api.xml | 93 2 files changed, 80 insertions(+), 93 deletions(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d39e4751/src/site/asciidoc/manual/scala-api.adoc -- diff --git a/src/site/asciidoc/manual/scala-api.adoc b/src/site/asciidoc/manual/scala-api.adoc new file mode 100644 index 000..d02f964 --- /dev/null +++ b/src/site/asciidoc/manual/scala-api.adoc @@ -0,0 +1,80 @@ + +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + +https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + += Log4j 2 Scala API +Mikael Ståldal + +Log4j 2 has a companion Log4j Scala project that contains a convenient +Scala wrapper for the +link:../log4j-api/apidocs/org/apache/logging/log4j/Logger.html[`Logger`] +API. + +== Requirements + +Log4j 2 Scala API is dependent on the Log4j 2 API, Scala runtime library +and reflection. It currently supports Scala 2.10, 2.11 and 2.12. See +link:../maven-artifacts.html#Scala_API[instructions] on including this +in an SBT, Maven, Ivy, or Gradle project. + +== Example + +[source,scala] + +import org.apache.logging.log4j.scala.Logging +import org.apache.logging.log4j.Level + +class MyClass extends BaseClass with Logging { + def doStuff(): Unit = { +logger.info("Doing stuff") + } + def doStuffWithLevel(level: Level): Unit = { +logger(level, "Doing stuff with arbitrary level") + } +} + + +The output from the call to `logger.info()` will vary significantly +depending on the configuration used. See the +link:./configuration.html[Configuration] section for more details. + +== Substituting Parameters + +Frequently the purpose of logging is to provide information about what +is happening in the system, which requires including information about +the objects being manipulated. In Scala, you can use +http://docs.scala-lang.org/overviews/core/string-interpolation.html[string +interpolation] to achieve this: + +[source,scala] + +logger.debug(s"Logging in user ${user.getName} with birthday ${user.calcBirthday}") + + +Since the Scala Logger is implemented with macros, the String +construction and method invocations will only occur when debug logging +is enabled. + +== Logger Names + +Most logging implementations use a hierarchical scheme for matching +logger names with logging configuration. In this scheme the logger name +hierarchy is represented by '.' characters in the logger name, in a +fashion very similar to the hierarchy used for Java/Scala package names. +The Logging trait will automatically name the Logger accordingly to the +class it is being used in. + +Please see the http://logging.apache.org/log4j/scala/index.html[Log4j +Scala] project for more details. http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d39e4751/src/site/xdoc/manual/scala-api.xml -- diff --git a/src/site/xdoc/manual/scala-api.xml b/src/site/xdoc/manual/scala-api.xml deleted file mode 100644 index 61e3222..000 --- a/src/site/xdoc/manual/scala-api.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - -http://maven.apache.org/XDOC/2.0; - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; - xsi:schemaLocation="http://maven.apache.org/XDOC/2.0
[19/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/AUTHORS.txt -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/AUTHORS.txt b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/AUTHORS.txt deleted file mode 100644 index a75056b..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/AUTHORS.txt +++ /dev/null @@ -1,333 +0,0 @@ -Authors ordered by first contribution -A list of current team members is available at http://jqueryui.com/about - -Paul Bakaus-Richard Worth -Yehuda Katz -Sean Catchpole -John Resig -Tane Piper -Dmitri Gaskin -Klaus Hartl -Stefan Petre -Gilles van den Hoven -Micheil Bryan Smith -Jörn Zaefferer -Marc Grabanski -Keith Wood -Brandon Aaron -Scott González -Eduardo Lundgren -Aaron Eisenberger -Joan Piedra -Bruno Basto -Remy Sharp -Bohdan Ganicky -David Bolter -Chi Cheng -Ca-Phun Ung -Ariel Flesler -Maggie Wachs -Scott Jehl -Todd Parker -Andrew Powell -Brant Burnett -Douglas Neiner -Paul Irish -Ralph Whitbeck -Thibault Duplessis -Dominique Vincent -Jack Hsu -Adam Sontag -Carl Fürstenberg -Kevin Dalman -Alberto Fernández Capel -Jacek JÄdrzejewski (http://jacek.jedrzejewski.name) -Ting Kuei -Samuel Cormier-Iijima -Jon Palmer -Ben Hollis -Justin MacCarthy -Eyal Kobrigo -Tiago Freire -Diego Tres -Holger Rüprich -Ziling Zhao -Mike Alsup -Robson Braga Araujo -Pierre-Henri Ausseil -Christopher McCulloh -Andrew Newcomb -Lim Chee Aun -Jorge Barreiro -Daniel Steigerwald -John Firebaugh -John Enters -Andrey Kapitcyn -Dmitry Petrov -Eric Hynds -Chairat Sunthornwiphat -Josh Varner -Stéphane Raimbault -Jay Merrifield -J. Ryan Stinnett -Peter Heiberg -Alex Dovenmuehle -Jamie Gegerson -Raymond Schwartz -Phillip Barnes -Kyle Wilkinson -Khaled AlHourani -Marian Rudzynski -Jean-Francois Remy -Doug Blood -Filippo Cavallarin -Heiko Henning -Aliaksandr Rahalevich -Mario Visic -Xavi Ramirez -Max Schnur -Saji Nediyanchath -Corey Frang -Aaron Peterson -Ivan Peters -Mohamed Cherif Bouchelaghem -Marcos Sousa -Michael DellaNoce -George Marshall -Tobias Brunner -Martin Solli -David Petersen -Dan Heberden -William Kevin Manire -Gilmore Davidson -Michael Wu -Adam Parod -Guillaume Gautreau -Marcel Toele -Dan Streetman -Matt Hoskins -Giovanni Giacobbi -Kyle Florence -Pavol Hluchý -Hans Hillen -Mark Johnson
[10/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/jquery.jtable.min.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/jquery.jtable.min.js b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/jquery.jtable.min.js deleted file mode 100644 index e010c83..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/jquery.jtable.min.js +++ /dev/null @@ -1,157 +0,0 @@ -/* -jTable 2.4.0 -http://www.jtable.org -Copyright (C) 2011-2014 by Halil Ä°brahim Kalkan (http://www.halilibrahimkalkan.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ -(function(c){var g;c(window).on("beforeunload",function(){g=!0});c(window).on("unload",function(){g=!1});c.widget("hik.jtable",{options:{actions:{},fields:{},animationsEnabled:!0,defaultDateFormat:"yy-mm-dd",dialogShowEffect:"fade",dialogHideEffect:"fade",showCloseButton:!1,loadingAnimationDelay:500,saveUserPreferences:!0,jqueryuiTheme:!1,unAuthorizedRequestRedirectUrl:null,ajaxSettings:{type:"POST",dataType:"json"},toolbar:{hoverAnimation:!0,hoverAnimationDuration:60,hoverAnimationEasing:void 0, -items:[]},closeRequested:function(a,b){},formCreated:function(a,b){},formSubmitting:function(a,b){},formClosed:function(a,b){},loadingRecords:function(a,b){},recordsLoaded:function(a,b){},rowInserted:function(a,b){},rowsRemoved:function(a,b){},messages:{serverCommunicationError:"An error occured while communicating to the server.",loadingMessage:"Loading records...",noDataAvailable:"No data available!",areYouSure:"Are you sure?",save:"Save",saving:"Saving",cancel:"Cancel",error:"Error",close:"Close", -cannotLoadOptionsFor:"Can not load options for field {0}"}},_$mainContainer:null,_$titleDiv:null,_$toolbarDiv:null,_$table:null,_$tableBody:null,_$tableRows:null,_$busyDiv:null,_$busyMessageDiv:null,_$errorDialogDiv:null,_columnList:null,_fieldList:null,_keyField:null,_firstDataColumnOffset:0,_lastPostData:null,_cache:null,_create:function(){this._normalizeFieldsOptions();this._initializeFields();this._createFieldAndColumnList();this._createMainContainer();this._createTableTitle();this._createToolBar(); -this._createTable();this._createBusyPanel();this._createErrorDialogDiv();this._addNoDataRow();this._cookieKeyPrefix=this._generateCookieKeyPrefix()},_normalizeFieldsOptions:function(){var a=this;c.each(a.options.fields,function(b,d){a._normalizeFieldOptions(b,d)})},_normalizeFieldOptions:function(a,b){void 0==b.listClass&&(b.listClass="");void 0==b.inputClass&&(b.inputClass="");if(b.dependsOn&&"string"===c.type(b.dependsOn)){var d=b.dependsOn.split(",");b.dependsOn=[];for(var f=0;f
[26/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/metro/edit.png -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/metro/edit.png b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/metro/edit.png new file mode 100644 index 000..406e5af Binary files /dev/null and b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/metro/edit.png differ http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/metro/green/jtable.css -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/metro/green/jtable.css b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/metro/green/jtable.css new file mode 100644 index 000..2576713 --- /dev/null +++ b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/metro/green/jtable.css @@ -0,0 +1,495 @@ +/* jTable metro style theme - Green + * Created by Halil İbrahim Kalkan + * http://www.jtable.org + */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 300; + src: local('Open Sans Light'), local('OpenSans-Light'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/DXI1ORHCpsQm3Vp6mXoaTRa1RVmPjeKy21_GQJaLlJI.woff) format('woff'); +} +@font-face { + font-family: 'Open Sans'; + font-style: italic; + font-weight: 300; + src: local('Open Sans Light Italic'), local('OpenSansLight-Italic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxrsuoFAk0leveMLeqYtnfAY.woff) format('woff'); +} +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/u-WUoqrET9fUeobQW7jkRT8E0i7KZn-EPnyo3HZu7kw.woff) format('woff'); +} +@font-face { + font-family: 'Open Sans'; + font-style: italic; + font-weight: 400; + src: local('Open Sans Italic'), local('OpenSans-Italic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/xjAJXh38I15wypJXxuGMBtIh4imgI8P11RFo6YPCPC0.woff) format('woff'); +} +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 600; + src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/MTP_ySUJH_bn48VBG8sNSha1RVmPjeKy21_GQJaLlJI.woff) format('woff'); +} +@font-face { + font-family: 'Open Sans'; + font-style: italic; + font-weight: 600; + src: local('Open Sans Semibold Italic'), local('OpenSans-SemiboldItalic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxmWeb5PoA5ztb49yLyUzH1A.woff) format('woff'); +} +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/k3k702ZOKiLJc3WVjuplzBa1RVmPjeKy21_GQJaLlJI.woff) format('woff'); +} +@font-face { + font-family: 'Open Sans'; + font-style: italic; + font-weight: 700; + src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxoUt79146ZFaIJxILcpzmhI.woff) format('woff'); +} +div.jtable-main-container { + position: relative; +} +div.jtable-main-container div.jtable-title { + position: relative; + text-align: left; +} +div.jtable-main-container div.jtable-title .jtable-close-button { + right: 0px; + top: 0px; + bottom: 0px; + position: absolute; +} +div.jtable-main-container div.jtable-title div.jtable-toolbar { + bottom: 0px; + right: 0px; + position: absolute; + display: inline-block; + margin-right: 5px; +} +div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item { + position: relative; + display: inline-block; + margin: 0px 0px 0px 5px; + cursor: pointer; + font-size: 0.9em; + padding: 2px; + vertical-align: bottom; +} +div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-icon { + display: inline-block; + margin: 2px; + vertical-align: middle; + width: 16px; + height: 16px; +} +div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-text { + display: inline-block; + margin: 2px; + vertical-align: middle; +} +div.jtable-main-container div.jtable-title .jtable-close-button + div.jtable-toolbar { + margin-right: 30px; +} +div.jtable-main-container
[08/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/jtable_theme_base.less -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/jtable_theme_base.less b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/jtable_theme_base.less deleted file mode 100644 index b68360f..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/themes/jtable_theme_base.less +++ /dev/null @@ -1,524 +0,0 @@ -// Base styles for jTable. -// All themes must inherit from jtable_theme_base. -// Created by Halil İbrahim Kalkan -// http://www.jtable.org - -// GENERAL MIXINGS - -.centered() -{ -text-align: center; -vertical-align: middle; -} - -.clear-margin-padding() -{ -margin: 0px; -padding: 0px; -} - -.clear-list-styles() -{ -.clear-margin-padding; -list-style: none; -} - -.border-radius(@radius) -{ --webkit-border-radius: @radius; --moz-border-radius: @radius; -border-radius: @radius; -} - -.text-shadow(@shadow) -{ --webkit-text-shadow: @shadow; -text-shadow: @shadow; -} - -.box-shadow(@shadow) -{ --webkit-box-shadow: @shadow; --moz-box-shadow: @shadow; -box-shadow: @shadow; -} - -.opacity(@value) -{ -opacity: @value; -//for IE8 and earlier -@ieValue: @value * 100; -filter: alpha(opacity=@ieValue); -} - -.vertical-gradient(@top_color, @bottom_color) -{ -background: @top_color; // Old browsers -background: -moz-linear-gradient(top, @top_color 0%, @bottom_color 100%); // FF3.6+ -background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,@top_color), color-stop(100%,@bottom_color)); // Chrome,Safari4+ -background: -webkit-linear-gradient(top, @top_color 0%,@bottom_color 100%); // Chrome10+,Safari5.1+ -background: -o-linear-gradient(top, @top_color 0%,@bottom_color 100%); // Opera 11.10+ -background: -ms-linear-gradient(top, @top_color 0%,@bottom_color 100%); // IE10+ -background: linear-gradient(to bottom, @top_color 0%,@bottom_color 100%); // W3C -filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='@{top_color}', endColorstr='@{bottom_color}',GradientType=0 ); // IE6-9 -} - -// Docking - -@default-dock-margin: 0px; - -.dock(top, @margin: @default-dock-margin) -{ -left: @margin; -top: @margin; -right: @margin; -} - -.dock(right, @margin: @default-dock-margin) -{ -right: @margin; -top: @margin; -bottom: @margin; -} - -.dock(bottom, @margin: @default-dock-margin) -{ -left: @margin; -right: @margin; -bottom: @margin; -} - -.dock(left, @margin: @default-dock-margin) -{ -left: @margin; -top: @margin; -bottom: @margin; -} - -.dock(top-left, @margin: @default-dock-margin) -{ -left: @margin; -top: @margin; -} - -.dock(top-right, @margin: @default-dock-margin) -{ -top: @margin; -right: @margin; -} - -.dock(bottom-right, @margin: @default-dock-margin) -{ -bottom: @margin; -right: @margin; -} - -.dock(bottom-left, @margin: @default-dock-margin) -{ -bottom: @margin; -left: @margin; -} - -.dock(@direction, @margin: @default-dock-margin) -{ -position: absolute; -} - -// JTABLE THEME BASE STYLES /// - -.jtable_theme_base() -{ -div.jtable-main-container -{ -position: relative; - -div.jtable-title -{ -position: relative; -text-align: left; - -.jtable-close-button -{ -.dock(right); -} - - // Toolbar - - - div.jtable-toolbar - { - .dock(bottom-right); - - display: inline-block; - margin-right: 5px; - - span.jtable-toolbar-item - { - position: relative; - display: inline-block; - margin: 0px 0px 0px 5px; - cursor: pointer; - font-size: 0.9em; - padding: 2px; - vertical-align: bottom; - - span.jtable-toolbar-item-icon - { - display: inline-block; - margin: 2px; - vertical-align: middle; -
[33/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/jquery.jtable.min.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/jquery.jtable.min.js b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/jquery.jtable.min.js new file mode 100644 index 000..e010c83 --- /dev/null +++ b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/jquery.jtable.min.js @@ -0,0 +1,157 @@ +/* +jTable 2.4.0 +http://www.jtable.org +--- +Copyright (C) 2011-2014 by Halil Ä°brahim Kalkan (http://www.halilibrahimkalkan.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ +(function(c){var g;c(window).on("beforeunload",function(){g=!0});c(window).on("unload",function(){g=!1});c.widget("hik.jtable",{options:{actions:{},fields:{},animationsEnabled:!0,defaultDateFormat:"yy-mm-dd",dialogShowEffect:"fade",dialogHideEffect:"fade",showCloseButton:!1,loadingAnimationDelay:500,saveUserPreferences:!0,jqueryuiTheme:!1,unAuthorizedRequestRedirectUrl:null,ajaxSettings:{type:"POST",dataType:"json"},toolbar:{hoverAnimation:!0,hoverAnimationDuration:60,hoverAnimationEasing:void 0, +items:[]},closeRequested:function(a,b){},formCreated:function(a,b){},formSubmitting:function(a,b){},formClosed:function(a,b){},loadingRecords:function(a,b){},recordsLoaded:function(a,b){},rowInserted:function(a,b){},rowsRemoved:function(a,b){},messages:{serverCommunicationError:"An error occured while communicating to the server.",loadingMessage:"Loading records...",noDataAvailable:"No data available!",areYouSure:"Are you sure?",save:"Save",saving:"Saving",cancel:"Cancel",error:"Error",close:"Close", +cannotLoadOptionsFor:"Can not load options for field {0}"}},_$mainContainer:null,_$titleDiv:null,_$toolbarDiv:null,_$table:null,_$tableBody:null,_$tableRows:null,_$busyDiv:null,_$busyMessageDiv:null,_$errorDialogDiv:null,_columnList:null,_fieldList:null,_keyField:null,_firstDataColumnOffset:0,_lastPostData:null,_cache:null,_create:function(){this._normalizeFieldsOptions();this._initializeFields();this._createFieldAndColumnList();this._createMainContainer();this._createTableTitle();this._createToolBar(); +this._createTable();this._createBusyPanel();this._createErrorDialogDiv();this._addNoDataRow();this._cookieKeyPrefix=this._generateCookieKeyPrefix()},_normalizeFieldsOptions:function(){var a=this;c.each(a.options.fields,function(b,d){a._normalizeFieldOptions(b,d)})},_normalizeFieldOptions:function(a,b){void 0==b.listClass&&(b.listClass="");void 0==b.inputClass&&(b.inputClass="");if(b.dependsOn&&"string"===c.type(b.dependsOn)){var d=b.dependsOn.split(",");b.dependsOn=[];for(var f=0;f
[25/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/metro/lightgray/jtable.min.css -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/metro/lightgray/jtable.min.css b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/metro/lightgray/jtable.min.css new file mode 100644 index 000..fe22943 --- /dev/null +++ b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/metro/lightgray/jtable.min.css @@ -0,0 +1 @@ +@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/DXI1ORHCpsQm3Vp6mXoaTRa1RVmPjeKy21_GQJaLlJI.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;src:local('Open Sans Light Italic'),local('OpenSansLight-Italic'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxrsuoFAk0leveMLeqYtnfAY.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/u-WUoqrET9fUeobQW7jkRT8E0i7KZn-EPnyo3HZu7kw.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/xjAJXh38I15wypJXxuGMBtIh4imgI8P11RFo6YPCPC0.woff ) format('woff')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/MTP_ySUJH_bn48VBG8sNSha1RVmPjeKy21_GQJaLlJI.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;src:local('Open Sans Semibold Italic'),local('OpenSans-SemiboldItalic'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxmWeb5PoA5ztb49yLyUzH1A.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/k3k702ZOKiLJc3WVjuplzBa1RVmPjeKy21_GQJaLlJI.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRm iXeptR36kaC0GEAetxoUt79146ZFaIJxILcpzmhI.woff) format('woff')}div.jtable-main-container{position:relative}div.jtable-main-container div.jtable-title{position:relative;text-align:left}div.jtable-main-container div.jtable-title .jtable-close-button{right:0;top:0;bottom:0;position:absolute}div.jtable-main-container div.jtable-title div.jtable-toolbar{bottom:0;right:0;position:absolute;display:inline-block;margin-right:5px}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item{position:relative;display:inline-block;margin:0 0 0 5px;cursor:pointer;font-size:.9em;padding:2px;vertical-align:bottom}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-icon{display:inline-block;margin:2px;vertical-align:middle;width:16px;height:16px}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-text{display:inline-block;margin:2px;vertical-align:middle}di v.jtable-main-container div.jtable-title .jtable-close-button+div.jtable-toolbar{margin-right:30px}div.jtable-main-container table.jtable{width:100%}div.jtable-main-container table.jtable thead th{vertical-align:middle;text-align:left}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container{position:relative}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container span.jtable-column-header-text{display:inline-block}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container div.jtable-column-resize-handler{position:absolute;height:24px;width:8px;right:-8px;top:-2px;z-index:2;cursor:col-resize}div.jtable-main-container table.jtable thead th.jtable-command-column-header{text-align:center}div.jtable-main-container table.jtable thead th.jtable-column-header-selecting{text-align:center;width:1%}div.jtable-main-container table.jtable thead th.jtable-col umn-header-selecting input{cursor:pointer}div.jtable-main-container table.jtable thead th.jtable-column-header-sortable{cursor:pointer}div.jtable-main-container table.jtable tbody tr>td
[36/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/jquery-ui.structure.css -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/jquery-ui.structure.css b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/jquery-ui.structure.css new file mode 100644 index 000..9e6955a --- /dev/null +++ b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/jquery-ui.structure.css @@ -0,0 +1,886 @@ +/*! + * jQuery UI CSS Framework 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + * + * http://api.jqueryui.com/category/theming/ + */ +/* Layout helpers +--*/ +.ui-helper-hidden { + display: none; +} +.ui-helper-hidden-accessible { + border: 0; + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; +} +.ui-helper-reset { + margin: 0; + padding: 0; + border: 0; + outline: 0; + line-height: 1.3; + text-decoration: none; + font-size: 100%; + list-style: none; +} +.ui-helper-clearfix:before, +.ui-helper-clearfix:after { + content: ""; + display: table; + border-collapse: collapse; +} +.ui-helper-clearfix:after { + clear: both; +} +.ui-helper-zfix { + width: 100%; + height: 100%; + top: 0; + left: 0; + position: absolute; + opacity: 0; + filter:Alpha(Opacity=0); /* support: IE8 */ +} + +.ui-front { + z-index: 100; +} + + +/* Interaction Cues +--*/ +.ui-state-disabled { + cursor: default !important; + pointer-events: none; +} + + +/* Icons +--*/ +.ui-icon { + display: inline-block; + vertical-align: middle; + margin-top: -.25em; + position: relative; + text-indent: -9px; + overflow: hidden; + background-repeat: no-repeat; +} + +.ui-widget-icon-block { + left: 50%; + margin-left: -8px; + display: block; +} + +/* Misc visuals +--*/ + +/* Overlays */ +.ui-widget-overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; +} +.ui-accordion .ui-accordion-header { + display: block; + cursor: pointer; + position: relative; + margin: 2px 0 0 0; + padding: .5em .5em .5em .7em; + font-size: 100%; +} +.ui-accordion .ui-accordion-content { + padding: 1em 2.2em; + border-top: 0; + overflow: auto; +} +.ui-autocomplete { + position: absolute; + top: 0; + left: 0; + cursor: default; +} +.ui-menu { + list-style: none; + padding: 0; + margin: 0; + display: block; + outline: 0; +} +.ui-menu .ui-menu { + position: absolute; +} +.ui-menu .ui-menu-item { + margin: 0; + cursor: pointer; + /* support: IE10, see #8844 */ + list-style-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAP///yH5BAEALAABAAEAAAIBRAA7"); +} +.ui-menu .ui-menu-item-wrapper { + position: relative; + padding: 3px 1em 3px .4em; +} +.ui-menu .ui-menu-divider { + margin: 5px 0; + height: 0; + font-size: 0; + line-height: 0; + border-width: 1px 0 0 0; +} +.ui-menu .ui-state-focus, +.ui-menu .ui-state-active { + margin: -1px; +} + +/* icon support */ +.ui-menu-icons { + position: relative; +} +.ui-menu-icons .ui-menu-item-wrapper { + padding-left: 2em; +} + +/* left-aligned */ +.ui-menu .ui-icon { + position: absolute; + top: 0; + bottom: 0; + left: .2em; + margin: auto 0; +} + +/* right-aligned */ +.ui-menu .ui-menu-icon { + left: auto; + right: 0; +} +.ui-button { + padding: .4em 1em; + display: inline-block; + position: relative; + line-height: normal; + margin-right: .1em; + cursor: pointer; + vertical-align: middle; + text-align: center; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + + /* Support: IE <= 11 */ + overflow: visible; +} + +.ui-button, +.ui-button:link, +.ui-button:visited, +.ui-button:hover, +.ui-button:active { + text-decoration: none; +} + +/* to make room for the icon, a width needs to be set here */ +.ui-button-icon-only { + width: 2em; + box-sizing: border-box; + text-indent: -px; + white-space: nowrap; +} + +/* no icon support for input elements */
[32/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/localization/jquery.jtable.lt.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/localization/jquery.jtable.lt.js b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/localization/jquery.jtable.lt.js new file mode 100644 index 000..df1b705 --- /dev/null +++ b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/localization/jquery.jtable.lt.js @@ -0,0 +1,30 @@ +/* +jTable localization file for 'Lithuanian' language. +Author: Vygandas Å imkus +*/ +(function ($) { + +$.extend(true, $.hik.jtable.prototype.options.messages, { +serverCommunicationError: 'Klaida bandant susisiekti su serveriu.', +loadingMessage: 'Informacija kraunama...', +noDataAvailable: 'NÄra duomenų!', +addNewRecord: '+ PridÄti naujÄ ', +editRecord: 'Redaguoti', +areYouSure: 'Ar tikrai?', +deleteConfirmation: 'Ä®raÅ¡as bus iÅ¡trintas. Ar tÄsti?', +save: 'IÅ¡saugoti', +saving: 'Saugojama', +cancel: 'AtÅ¡aukti', +deleteText: 'IÅ¡trinti', +deleting: 'Trinama', +error: 'Klaida', +close: 'Uždaryti', +cannotLoadOptionsFor: 'Nepavyko užkrauti "{0}" pasirinkimo!', +pagingInfo: '{0}-{1} iÅ¡ {2}', +canNotDeletedRecords: 'Nepavyko paÅ¡alinti {0} iÅ¡ {1} įrašų!', +deleteProggress: 'Å alinamas {0} iÅ¡ {1} įrašų, praÅ¡ome palaukti...', +pageSizeChangeLabel: 'Row count', //New. Must be localized. +gotoPageLabel: 'Go to page' //New. Must be localized. +}); + +})(jQuery); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/localization/jquery.jtable.nl-NL.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/localization/jquery.jtable.nl-NL.js b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/localization/jquery.jtable.nl-NL.js new file mode 100644 index 000..942ef0f --- /dev/null +++ b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/localization/jquery.jtable.nl-NL.js @@ -0,0 +1,30 @@ +/* + jTable localization file for 'Dutch - The Netherlands' language. + Author: Bert Janssen +*/ +(function ($) { + +$.extend(true, $.hik.jtable.prototype.options.messages, { +serverCommunicationError: 'Fout bij het communiceren met de server', +loadingMessage: 'Laden...', +noDataAvailable: 'Geen gegevens beschikbaar!', +addNewRecord: '+ Toevoegen', +editRecord: 'Bewerken', +areYouSure: 'Weet u het zeker?', +deleteConfirmation: 'Gegevens verwijderen?', +save: 'Opslaan', +saving: 'Gegevens opslaan', +cancel: 'Annuleren', +deleteText: 'Wissen', +deleting: 'Gegevens wissen', +error: 'Er is een fout opgetreden!', +close: 'Sluiten', +cannotLoadOptionsFor: 'Kan de instellingen voor {0} niet laden', +pagingInfo: 'Pagina {0} tot {1} van {2}', +canNotDeletedRecords: 'Kan gegevens {0} van {1} niet wissen!', +deleteProggress: 'Gegevens {0} van {1} wissen...', +pageSizeChangeLabel: 'Row count', //New. Must be localized. +gotoPageLabel: 'Go to page' //New. Must be localized. +}); + +})(jQuery); http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/localization/jquery.jtable.no.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/localization/jquery.jtable.no.js b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/localization/jquery.jtable.no.js new file mode 100644 index 000..c342cbb --- /dev/null +++ b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/localization/jquery.jtable.no.js @@ -0,0 +1,30 @@ +/* +jTable localization file for 'Norwegian' language. +Author: Tobias Flatin +*/ +(function ($) { + +$.extend(true, $.hik.jtable.prototype.options.messages, { +serverCommunicationError: 'En feil oppsto i kommunikasjonen med serveren.', +loadingMessage: 'Laster...', +noDataAvailable: 'Ingen data', +addNewRecord: 'Legg til ny post', +editRecord: 'Rediger post', +areYouSure: 'Er du sikker?', +deleteConfirmation: 'Denne posten kommer Ã¥ slettes. Er du sikker?', +save: 'Lagre', +
[16/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/jquery-ui.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/jquery-ui.js b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/jquery-ui.js deleted file mode 100644 index 0213552..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/jquery-ui.js +++ /dev/null @@ -1,18706 +0,0 @@ -/*! jQuery UI - v1.12.1 - 2016-09-14 -* http://jqueryui.com -* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/toolt ip.js -* Copyright jQuery Foundation and other contributors; Licensed MIT */ - -(function( factory ) { - if ( typeof define === "function" && define.amd ) { - - // AMD. Register as an anonymous module. - define([ "jquery" ], factory ); - } else { - - // Browser globals - factory( jQuery ); - } -}(function( $ ) { - -$.ui = $.ui || {}; - -var version = $.ui.version = "1.12.1"; - - -/*! - * jQuery UI Widget 1.12.1 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - */ - -//>>label: Widget -//>>group: Core -//>>description: Provides a factory for creating stateful widgets with a common API. -//>>docs: http://api.jqueryui.com/jQuery.widget/ -//>>demos: http://jqueryui.com/widget/ - - - -var widgetUuid = 0; -var widgetSlice = Array.prototype.slice; - -$.cleanData = ( function( orig ) { - return function( elems ) { - var events, elem, i; - for ( i = 0; ( elem = elems[ i ] ) != null; i++ ) { - try { - - // Only trigger remove when necessary to save time - events = $._data( elem, "events" ); - if ( events && events.remove ) { - $( elem ).triggerHandler( "remove" ); - } - - // Http://bugs.jquery.com/ticket/8235 - } catch ( e ) {} - } - orig( elems ); - }; -} )( $.cleanData ); - -$.widget = function( name, base, prototype ) { - var existingConstructor, constructor, basePrototype; - - // ProxiedPrototype allows the provided prototype to remain unmodified - // so that it can be used as a mixin for multiple widgets (#8876) - var proxiedPrototype = {}; - - var namespace = name.split( "." )[ 0 ]; - name = name.split( "." )[ 1 ]; - var fullName = namespace + "-" + name; - - if ( !prototype ) { - prototype = base; - base = $.Widget; - } - - if ( $.isArray( prototype ) ) { - prototype = $.extend.apply( null, [ {} ].concat( prototype ) ); - } - - // Create selector for plugin - $.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) { - return !!$.data( elem, fullName ); - }; - - $[ namespace ] = $[ namespace ] || {}; - existingConstructor = $[ namespace ][ name ]; - constructor = $[ namespace ][ name ] = function( options, element ) { - - // Allow instantiation without "new" keyword - if ( !this._createWidget ) { - return new constructor( options, element ); - } - - // Allow instantiation without initializing for simple inheritance - // must use "new" keyword (the code above always passes args) - if ( arguments.length ) { - this._createWidget( options, element ); - } - }; - - // Extend with the existing constructor to carry over any static properties - $.extend( constructor, existingConstructor, { -
[38/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/jquery-ui.min.css -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/jquery-ui.min.css b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/jquery-ui.min.css new file mode 100644 index 000..776e259 --- /dev/null +++ b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/jquery-ui.min.css @@ -0,0 +1,7 @@ +/*! jQuery UI - v1.12.1 - 2016-09-14 +* http://jqueryui.com +* Includes: core.css, accordion.css, autocomplete.css, menu.css, button.css, controlgroup.css, checkboxradio.css, datepicker.css, dialog.css, draggable.css, resizable.css, progressbar.css, selectable.css, selectmenu.css, slider.css, sortable.css, spinner.css, tabs.css, tooltip.css, theme.css +* To view and modify this theme, visit http://jqueryui.com/themeroller/?bgShadowXPosurl(%22images%2Fui-icons_55_256x240.png%22)=url(%22images%2Fui-icons_777620_256x240.png%22)=url(%22images%2Fui-icons_44_256x240.png%22)=url(%22images%2Fui-icons_cc_256x240.png%22)=url(%22images%2Fui-icons_77_256x240.png%22)=url(%22images%2Fui-icons_44_256x240.png%22)=url(%22images%2Fui-icons_ff_256x240.png%22)= or=Alpha(Opacity%3D30)=Alpha(Opacity%3D30)=30=30=%2355=%23777620=%2344=%23cc=%2377=%2344=%23ff=0=0=95=55=75=75=65=75=75=flat=flat=flat=flat=flat=flat=flat=flat=flat=3px=normal=Arial%2CHelvetica%2Csans-serif=1em=8px=5px=0px=0px=.3=%2366=.3 erlay=%23aa=%235f3f3f=%23f1a899=%23fddfdf=%23777620=%23dad55e=%23fffa90=%2333=%23dd=%23ff=%2333=%23dd=%23e9e9e9=%23ff=%23003eff=%23007fff=%232b2b2b=%23cc=%23ededed=%23454545=%23c5c5c5=%23f6f6f6 +* Copyright jQuery Foundation and other contributors; Licensed MIT */ + +.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important;pointer-events:none}.ui-icon{display:inline-block;vertical-align:middle;margin-top:-.25em;position:relative;text-indent:-9px;overflow:hidden;background-repeat:no-repeat}.ui-widget-icon-block{left:50%;margin-left:-8px;display:block}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-accordion .ui-accordion-header{display:block;cursor:pointer;position:relative;margin:2px 0 0 0;padding:.5em .5em .5em .7em;font-size:100%}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:0}.ui-menu .ui-menu{position:absolute}.ui-menu .ui-menu-item{margin:0;cursor:pointer;list-style-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAP///yH5BAEALAABAAEAAAIBRAA7")}.ui-menu .ui-menu-item-wrapper{position:relative;padding:3px 1em 3px .4em}.ui-menu .ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-state-focus,.ui-menu .ui-state-active{margin:-1px}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item-wrapper{padding-left:2em}.ui-menu .ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.ui-menu .ui-menu-icon{left:auto;right:0}.ui-button{padding:.4em 1em;display:inline-block;position:relative;line-height:normal;margin-right:.1em;cursor:poi nter;vertical-align:middle;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:visible}.ui-button,.ui-button:link,.ui-button:visited,.ui-button:hover,.ui-button:active{text-decoration:none}.ui-button-icon-only{width:2em;box-sizing:border-box;text-indent:-px;white-space:nowrap}input.ui-button.ui-button-icon-only{text-indent:0}.ui-button-icon-only .ui-icon{position:absolute;top:50%;left:50%;margin-top:-8px;margin-left:-8px}.ui-button.ui-icon-notext .ui-icon{padding:0;width:2.1em;height:2.1em;text-indent:-px;white-space:nowrap}input.ui-button.ui-icon-notext .ui-icon{width:auto;height:auto;text-indent:0;white-space:normal;padding:.4em 1em}input.ui-button::-moz-focus-inner,button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-controlgroup{vertical-align:middle;display:inline-block}.ui-controlgroup >
[42/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/AUTHORS.txt -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/AUTHORS.txt b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/AUTHORS.txt new file mode 100644 index 000..a75056b --- /dev/null +++ b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/AUTHORS.txt @@ -0,0 +1,333 @@ +Authors ordered by first contribution +A list of current team members is available at http://jqueryui.com/about + +Paul Bakaus+Richard Worth +Yehuda Katz +Sean Catchpole +John Resig +Tane Piper +Dmitri Gaskin +Klaus Hartl +Stefan Petre +Gilles van den Hoven +Micheil Bryan Smith +Jörn Zaefferer +Marc Grabanski +Keith Wood +Brandon Aaron +Scott González +Eduardo Lundgren +Aaron Eisenberger +Joan Piedra +Bruno Basto +Remy Sharp +Bohdan Ganicky +David Bolter +Chi Cheng +Ca-Phun Ung +Ariel Flesler +Maggie Wachs +Scott Jehl +Todd Parker +Andrew Powell +Brant Burnett +Douglas Neiner +Paul Irish +Ralph Whitbeck +Thibault Duplessis +Dominique Vincent +Jack Hsu +Adam Sontag +Carl Fürstenberg +Kevin Dalman +Alberto Fernández Capel +Jacek JÄdrzejewski (http://jacek.jedrzejewski.name) +Ting Kuei +Samuel Cormier-Iijima +Jon Palmer +Ben Hollis +Justin MacCarthy +Eyal Kobrigo +Tiago Freire +Diego Tres +Holger Rüprich +Ziling Zhao +Mike Alsup +Robson Braga Araujo +Pierre-Henri Ausseil +Christopher McCulloh +Andrew Newcomb +Lim Chee Aun +Jorge Barreiro +Daniel Steigerwald +John Firebaugh +John Enters +Andrey Kapitcyn +Dmitry Petrov +Eric Hynds +Chairat Sunthornwiphat +Josh Varner +Stéphane Raimbault +Jay Merrifield +J. Ryan Stinnett +Peter Heiberg +Alex Dovenmuehle +Jamie Gegerson +Raymond Schwartz +Phillip Barnes +Kyle Wilkinson +Khaled AlHourani +Marian Rudzynski +Jean-Francois Remy +Doug Blood +Filippo Cavallarin +Heiko Henning +Aliaksandr Rahalevich +Mario Visic +Xavi Ramirez +Max Schnur +Saji Nediyanchath +Corey Frang +Aaron Peterson +Ivan Peters +Mohamed Cherif Bouchelaghem +Marcos Sousa +Michael DellaNoce +George Marshall +Tobias Brunner +Martin Solli +David Petersen +Dan Heberden +William Kevin Manire +Gilmore Davidson +Michael Wu +Adam Parod +Guillaume Gautreau +Marcel Toele +Dan Streetman +Matt Hoskins +Giovanni Giacobbi +Kyle Florence +Pavol Hluchý +Hans Hillen
[2/2] logging-log4j2 git commit: Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/logging-log4j2.git
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/logging-log4j2.git Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/3d7f546a Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/3d7f546a Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/3d7f546a Branch: refs/heads/master Commit: 3d7f546ae96359158abfc6302803915fc2d2c632 Parents: faf996f 04daf2a Author: Gary GregoryAuthored: Sun Apr 8 13:31:14 2018 -0600 Committer: Gary Gregory Committed: Sun Apr 8 13:31:14 2018 -0600 -- .travis-toolchains.xml | 11 - .travis.yml | 23 +- Jenkinsfile | 15 +- src/site/asciidoc/manual/async.adoc | 626 src/site/asciidoc/manual/eventlogging.adoc | 142 src/site/asciidoc/manual/flowtracing.adoc| 275 +++ src/site/asciidoc/manual/index.adoc | 138 src/site/asciidoc/manual/markers.adoc| 104 +++ src/site/asciidoc/manual/messages.adoc | 333 + src/site/asciidoc/manual/scala-api.adoc | 80 ++ src/site/asciidoc/manual/thread-context.adoc | 233 ++ src/site/xdoc/manual/async.xml | 848 -- src/site/xdoc/manual/eventlogging.xml| 145 src/site/xdoc/manual/flowtracing.xml | 268 --- src/site/xdoc/manual/index.xml | 150 src/site/xdoc/manual/markers.xml | 110 --- src/site/xdoc/manual/messages.xml| 314 src/site/xdoc/manual/scala-api.xml | 93 --- src/site/xdoc/manual/thread-context.xml | 209 -- toolchains-jenkins-ibm.xml | 63 ++ 20 files changed, 2026 insertions(+), 2154 deletions(-) --
logging-log4j2 git commit: Update tests from H2 1.4.196 to 1.4.197.
Repository: logging-log4j2 Updated Branches: refs/heads/release-2.x 34a1b6102 -> 059153778 Update tests from H2 1.4.196 to 1.4.197. Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/05915377 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/05915377 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/05915377 Branch: refs/heads/release-2.x Commit: 0591537786e77d5f243de1f92e6b6183a8a24055 Parents: 34a1b61 Author: Gary GregoryAuthored: Sun Apr 8 13:39:58 2018 -0600 Committer: Gary Gregory Committed: Sun Apr 8 13:39:58 2018 -0600 -- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/05915377/pom.xml -- diff --git a/pom.xml b/pom.xml index 4d432f2..e91b24b 100644 --- a/pom.xml +++ b/pom.xml @@ -713,7 +713,7 @@ com.h2database h2 -1.4.196 +1.4.197 org.eclipse.persistence
[18/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/external/jquery/jquery.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/external/jquery/jquery.js b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/external/jquery/jquery.js deleted file mode 100644 index 7fc60fc..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/external/jquery/jquery.js +++ /dev/null @@ -1,11008 +0,0 @@ -/*! - * jQuery JavaScript Library v1.12.4 - * http://jquery.com/ - * - * Includes Sizzle.js - * http://sizzlejs.com/ - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license - * http://jquery.org/license - * - * Date: 2016-05-20T17:17Z - */ - -(function( global, factory ) { - - if ( typeof module === "object" && typeof module.exports === "object" ) { - // For CommonJS and CommonJS-like environments where a proper `window` - // is present, execute the factory and get jQuery. - // For environments that do not have a `window` with a `document` - // (such as Node.js), expose a factory as module.exports. - // This accentuates the need for the creation of a real `window`. - // e.g. var jQuery = require("jquery")(window); - // See ticket #14549 for more info. - module.exports = global.document ? - factory( global, true ) : - function( w ) { - if ( !w.document ) { - throw new Error( "jQuery requires a window with a document" ); - } - return factory( w ); - }; - } else { - factory( global ); - } - -// Pass this if window is not defined yet -}(typeof window !== "undefined" ? window : this, function( window, noGlobal ) { - -// Support: Firefox 18+ -// Can't be in strict mode, several libs including ASP.NET trace -// the stack via arguments.caller.callee and Firefox dies if -// you try to trace through "use strict" call chains. (#13335) -//"use strict"; -var deletedIds = []; - -var document = window.document; - -var slice = deletedIds.slice; - -var concat = deletedIds.concat; - -var push = deletedIds.push; - -var indexOf = deletedIds.indexOf; - -var class2type = {}; - -var toString = class2type.toString; - -var hasOwn = class2type.hasOwnProperty; - -var support = {}; - - - -var - version = "1.12.4", - - // Define a local copy of jQuery - jQuery = function( selector, context ) { - - // The jQuery object is actually just the init constructor 'enhanced' - // Need init if jQuery is called (just allow error to be thrown if not included) - return new jQuery.fn.init( selector, context ); - }, - - // Support: Android<4.1, IE<9 - // Make sure we trim BOM and NBSP - rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, - - // Matches dashed string for camelizing - rmsPrefix = /^-ms-/, - rdashAlpha = /-([\da-z])/gi, - - // Used by jQuery.camelCase as callback to replace() - fcamelCase = function( all, letter ) { - return letter.toUpperCase(); - }; - -jQuery.fn = jQuery.prototype = { - - // The current version of jQuery being used - jquery: version, - - constructor: jQuery, - - // Start with an empty selector - selector: "", - - // The default length of a jQuery object is 0 - length: 0, - - toArray: function() { - return slice.call( this ); - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num != null ? - - // Return just the one element from the set - ( num < 0 ? this[ num + this.length ] : this[ num ] ) : - - // Return all the elements in a clean array - slice.call( this ); - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems ) { - - // Build a new jQuery matched element set - var ret = jQuery.merge( this.constructor(), elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - ret.context = this.context; - - // Return the newly-formed element set - return ret; - }, - - // Execute a callback for every element in the matched set. - each: function( callback ) { -
[29/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/lightcolor/orange/jtable.min.css -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/lightcolor/orange/jtable.min.css b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/lightcolor/orange/jtable.min.css new file mode 100644 index 000..e9d07a7 --- /dev/null +++ b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/lightcolor/orange/jtable.min.css @@ -0,0 +1 @@ +div.jtable-main-container{position:relative}div.jtable-main-container div.jtable-title{position:relative;text-align:left}div.jtable-main-container div.jtable-title .jtable-close-button{right:0;top:0;bottom:0;position:absolute}div.jtable-main-container div.jtable-title div.jtable-toolbar{bottom:0;right:0;position:absolute;display:inline-block;margin-right:5px}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item{position:relative;display:inline-block;margin:0 0 0 5px;cursor:pointer;font-size:.9em;padding:2px;vertical-align:bottom}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-icon{display:inline-block;margin:2px;vertical-align:middle;width:16px;height:16px}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-text{display:inline-block;margin:2px;vertical-align:middle}div.jtable-main-container div.jtable-title .jtable-close-butt on+div.jtable-toolbar{margin-right:30px}div.jtable-main-container table.jtable{width:100%}div.jtable-main-container table.jtable thead th{vertical-align:middle;text-align:left}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container{position:relative}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container span.jtable-column-header-text{display:inline-block}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container div.jtable-column-resize-handler{position:absolute;height:24px;width:8px;right:-8px;top:-2px;z-index:2;cursor:col-resize}div.jtable-main-container table.jtable thead th.jtable-command-column-header{text-align:center}div.jtable-main-container table.jtable thead th.jtable-column-header-selecting{text-align:center;width:1%}div.jtable-main-container table.jtable thead th.jtable-column-header-selecting input{cursor:pointer}div.jtable-main-c ontainer table.jtable thead th.jtable-column-header-sortable{cursor:pointer}div.jtable-main-container table.jtable tbody tr>td .jtable-command-button{margin:0;padding:0;cursor:pointer;border:none;display:inline}div.jtable-main-container table.jtable tbody tr>td .jtable-command-button span{display:none}div.jtable-main-container table.jtable tbody tr>td.jtable-command-column{text-align:center;vertical-align:middle}div.jtable-main-container table.jtable tbody tr>td.jtable-selecting-column{text-align:center;vertical-align:middle}div.jtable-main-container table.jtable tbody tr>td.jtable-selecting-column input{cursor:pointer}div.jtable-main-container table.jtable tbody tr.jtable-no-data-row{text-align:center}div.jtable-main-container>div.jtable-bottom-panel{position:relative;min-height:24px;text-align:left}div.jtable-main-container>div.jtable-bottom-panel div.jtable-right-area{right:0;top:0;bottom:0;position:absolute}div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list{disp lay:inline-block}div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-space,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-first,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-last,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-previous,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-next,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-active{padding:2px 5px;display:inline-block;cursor:pointer}div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-space,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-active,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-numb er-disabled{cursor:default}div.jtable-main-container>div.jtable-bottom-panel span.jtable-page-size-change{margin-left:5px}div.jtable-main-container>div.jtable-bottom-panel
[43/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-3.2.1.min.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-3.2.1.min.js b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-3.2.1.min.js new file mode 100644 index 000..644d35e --- /dev/null +++ b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-3.2.1.min.js @@ -0,0 +1,4 @@ +/*! jQuery v3.2.1 | (c) JS Foundation and other contributors | jquery.org/license */ +!function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){"use strict";var c=[],d=a.document,e=Object.getPrototypeOf,f=c.slice,g=c.concat,h=c.push,i=c.indexOf,j={},k=j.toString,l=j.hasOwnProperty,m=l.toString,n=m.call(Object),o={};function p(a,b){b=b||d;var c=b.createElement("script");c.text=a,b.head.appendChild(c).parentNode.removeChild(c)}var q="3.2.1",r=function(a,b){return new r.fn.init(a,b)},s=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,t=/^-ms-/,u=/-([a-z])/g,v=function(a,b){return b.toUpperCase()};r.fn=r.prototype={jquery:q,constructor:r,length:0,toArray:function(){return f.call(this)},get:function(a){return null==a?f.call(this):a<0?this[a+this.length]:this[a]},pushStack:function(a){var b=r.merge(this.constructor(),a);return b.prevObject=this,b},each:function(a){retu rn r.each(this,a)},map:function(a){return this.pushStack(r.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(f.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(a<0?b:0);return this.pushStack(c>=0&0& in a)}var x=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=function(a,b){for(var c=0,d=a.length;c
[28/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/metro/blue/jtable.min.css -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/metro/blue/jtable.min.css b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/metro/blue/jtable.min.css new file mode 100644 index 000..3c3b53f --- /dev/null +++ b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/metro/blue/jtable.min.css @@ -0,0 +1 @@ +@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/DXI1ORHCpsQm3Vp6mXoaTRa1RVmPjeKy21_GQJaLlJI.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;src:local('Open Sans Light Italic'),local('OpenSansLight-Italic'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxrsuoFAk0leveMLeqYtnfAY.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/u-WUoqrET9fUeobQW7jkRT8E0i7KZn-EPnyo3HZu7kw.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/xjAJXh38I15wypJXxuGMBtIh4imgI8P11RFo6YPCPC0.woff ) format('woff')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/MTP_ySUJH_bn48VBG8sNSha1RVmPjeKy21_GQJaLlJI.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;src:local('Open Sans Semibold Italic'),local('OpenSans-SemiboldItalic'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxmWeb5PoA5ztb49yLyUzH1A.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/k3k702ZOKiLJc3WVjuplzBa1RVmPjeKy21_GQJaLlJI.woff) format('woff')}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(http://themes.googleusercontent.com/static/fonts/opensans/v6/PRm iXeptR36kaC0GEAetxoUt79146ZFaIJxILcpzmhI.woff) format('woff')}div.jtable-main-container{position:relative}div.jtable-main-container div.jtable-title{position:relative;text-align:left}div.jtable-main-container div.jtable-title .jtable-close-button{right:0;top:0;bottom:0;position:absolute}div.jtable-main-container div.jtable-title div.jtable-toolbar{bottom:0;right:0;position:absolute;display:inline-block;margin-right:5px}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item{position:relative;display:inline-block;margin:0 0 0 5px;cursor:pointer;font-size:.9em;padding:2px;vertical-align:bottom}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-icon{display:inline-block;margin:2px;vertical-align:middle;width:16px;height:16px}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-text{display:inline-block;margin:2px;vertical-align:middle}di v.jtable-main-container div.jtable-title .jtable-close-button+div.jtable-toolbar{margin-right:30px}div.jtable-main-container table.jtable{width:100%}div.jtable-main-container table.jtable thead th{vertical-align:middle;text-align:left}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container{position:relative}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container span.jtable-column-header-text{display:inline-block}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container div.jtable-column-resize-handler{position:absolute;height:24px;width:8px;right:-8px;top:-2px;z-index:2;cursor:col-resize}div.jtable-main-container table.jtable thead th.jtable-command-column-header{text-align:center}div.jtable-main-container table.jtable thead th.jtable-column-header-selecting{text-align:center;width:1%}div.jtable-main-container table.jtable thead th.jtable-col umn-header-selecting input{cursor:pointer}div.jtable-main-container table.jtable thead th.jtable-column-header-sortable{cursor:pointer}div.jtable-main-container table.jtable tbody tr>td
[34/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/jquery.jtable.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/jquery.jtable.js b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/jquery.jtable.js new file mode 100644 index 000..869af24 --- /dev/null +++ b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/jquery.jtable.js @@ -0,0 +1,5021 @@ +/* + +jTable 2.4.0 +http://www.jtable.org + +--- + +Copyright (C) 2011-2014 by Halil İbrahim Kalkan (http://www.halilibrahimkalkan.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +*/ + +/ +* CORE jTable module* +*/ +(function ($) { + +var unloadingPage; + +$(window).on('beforeunload', function () { +unloadingPage = true; +}); +$(window).on('unload', function () { +unloadingPage = false; +}); + +$.widget("hik.jtable", { + + / +* DEFAULT OPTIONS / EVENTS * + */ +options: { + +//Options +actions: {}, +fields: {}, +animationsEnabled: true, +defaultDateFormat: 'yy-mm-dd', +dialogShowEffect: 'fade', +dialogHideEffect: 'fade', +showCloseButton: false, +loadingAnimationDelay: 500, +saveUserPreferences: true, +jqueryuiTheme: false, +unAuthorizedRequestRedirectUrl: null, + +ajaxSettings: { +type: 'POST', +dataType: 'json' +}, + +toolbar: { +hoverAnimation: true, +hoverAnimationDuration: 60, +hoverAnimationEasing: undefined, +items: [] +}, + +//Events +closeRequested: function (event, data) { }, +formCreated: function (event, data) { }, +formSubmitting: function (event, data) { }, +formClosed: function (event, data) { }, +loadingRecords: function (event, data) { }, +recordsLoaded: function (event, data) { }, +rowInserted: function (event, data) { }, +rowsRemoved: function (event, data) { }, + +//Localization +messages: { +serverCommunicationError: 'An error occured while communicating to the server.', +loadingMessage: 'Loading records...', +noDataAvailable: 'No data available!', +areYouSure: 'Are you sure?', +save: 'Save', +saving: 'Saving', +cancel: 'Cancel', +error: 'Error', +close: 'Close', +cannotLoadOptionsFor: 'Can not load options for field {0}' +} +}, + + / +* PRIVATE FIELDS * + */ + +_$mainContainer: null, //Reference to the main container of all elements that are created by this plug-in (jQuery object) + +_$titleDiv: null, //Reference to the title div (jQuery object) +_$toolbarDiv: null, //Reference to the toolbar div (jQuery object) + +
[35/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/external/json2.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/external/json2.js b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/external/json2.js new file mode 100644 index 000..e259f5e --- /dev/null +++ b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/external/json2.js @@ -0,0 +1,486 @@ +/* +json2.js +2012-10-08 + +Public Domain. + +NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. + +See http://www.JSON.org/js.html + + +This code should be minified before deployment. +See http://javascript.crockford.com/jsmin.html + +USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO +NOT CONTROL. + + +This file creates a global JSON object containing two methods: stringify +and parse. + +JSON.stringify(value, replacer, space) +value any JavaScript value, usually an object or array. + +replaceran optional parameter that determines how object +values are stringified for objects. It can be a +function or an array of strings. + +space an optional parameter that specifies the indentation +of nested structures. If it is omitted, the text will +be packed without extra whitespace. If it is a number, +it will specify the number of spaces to indent at each +level. If it is a string (such as '\t' or ''), +it contains the characters used to indent at each level. + +This method produces a JSON text from a JavaScript value. + +When an object value is found, if the object contains a toJSON +method, its toJSON method will be called and the result will be +stringified. A toJSON method does not serialize: it returns the +value represented by the name/value pair that should be serialized, +or undefined if nothing should be serialized. The toJSON method +will be passed the key associated with the value, and this will be +bound to the value + +For example, this would serialize Dates as ISO strings. + +Date.prototype.toJSON = function (key) { +function f(n) { +// Format integers to have at least two digits. +return n < 10 ? '0' + n : n; +} + +return this.getUTCFullYear() + '-' + + f(this.getUTCMonth() + 1) + '-' + + f(this.getUTCDate()) + 'T' + + f(this.getUTCHours()) + ':' + + f(this.getUTCMinutes()) + ':' + + f(this.getUTCSeconds()) + 'Z'; +}; + +You can provide an optional replacer method. It will be passed the +key and value of each member, with this bound to the containing +object. The value that is returned from your method will be +serialized. If your method returns undefined, then the member will +be excluded from the serialization. + +If the replacer parameter is an array of strings, then it will be +used to select the members to be serialized. It filters the results +such that only members with keys listed in the replacer array are +stringified. + +Values that do not have JSON representations, such as undefined or +functions, will not be serialized. Such values in objects will be +dropped; in arrays they will be replaced with null. You can use +a replacer function to replace those with JSON values. +JSON.stringify(undefined) returns undefined. + +The optional space parameter produces a stringification of the +value that is filled with line breaks and indentation to make it +easier to read. + +If the space parameter is a non-empty string, then that string will +be used for indentation. If the space parameter is a number, then +the indentation will be that many spaces. + +Example: + +text = JSON.stringify(['e', {pluribus: 'unum'}]); +// text is '["e",{"pluribus":"unum"}]' + + +text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t'); +// text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]' + +text = JSON.stringify([new Date()], function (key, value) { +return this[key] instanceof Date ? +
[22/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-1.12.4.min.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-1.12.4.min.js b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-1.12.4.min.js deleted file mode 100644 index e836475..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-1.12.4.min.js +++ /dev/null @@ -1,5 +0,0 @@ -/*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */ -!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="1.12.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(thi s,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&(a)?a:[]):f=a&(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!= a&==a.window},isNumeric:function(a){var b=a&();return!n.isArray(a)&(b)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(!l.ownFirst)for(b in a)return k.call(a,b);for(b in a);return void 0===b||k.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(b){b&(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){retur n null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(h)return h.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&(e);else for(g in a)e=b(a[g],g,c),null!=e&(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=e.call(arguments,2),d=function(){return a.apply(b||this,c.concat(e.call(arguments)))},d.guid=a.guid=a.guid||n.guid++,d):void 0},now:function(){return+new Date},support:l}),"fu nction"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&>0& in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new
[13/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/jquery-ui.structure.css -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/jquery-ui.structure.css b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/jquery-ui.structure.css deleted file mode 100644 index 9e6955a..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/jquery-ui.structure.css +++ /dev/null @@ -1,886 +0,0 @@ -/*! - * jQuery UI CSS Framework 1.12.1 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - * - * http://api.jqueryui.com/category/theming/ - */ -/* Layout helpers ---*/ -.ui-helper-hidden { - display: none; -} -.ui-helper-hidden-accessible { - border: 0; - clip: rect(0 0 0 0); - height: 1px; - margin: -1px; - overflow: hidden; - padding: 0; - position: absolute; - width: 1px; -} -.ui-helper-reset { - margin: 0; - padding: 0; - border: 0; - outline: 0; - line-height: 1.3; - text-decoration: none; - font-size: 100%; - list-style: none; -} -.ui-helper-clearfix:before, -.ui-helper-clearfix:after { - content: ""; - display: table; - border-collapse: collapse; -} -.ui-helper-clearfix:after { - clear: both; -} -.ui-helper-zfix { - width: 100%; - height: 100%; - top: 0; - left: 0; - position: absolute; - opacity: 0; - filter:Alpha(Opacity=0); /* support: IE8 */ -} - -.ui-front { - z-index: 100; -} - - -/* Interaction Cues ---*/ -.ui-state-disabled { - cursor: default !important; - pointer-events: none; -} - - -/* Icons ---*/ -.ui-icon { - display: inline-block; - vertical-align: middle; - margin-top: -.25em; - position: relative; - text-indent: -9px; - overflow: hidden; - background-repeat: no-repeat; -} - -.ui-widget-icon-block { - left: 50%; - margin-left: -8px; - display: block; -} - -/* Misc visuals ---*/ - -/* Overlays */ -.ui-widget-overlay { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; -} -.ui-accordion .ui-accordion-header { - display: block; - cursor: pointer; - position: relative; - margin: 2px 0 0 0; - padding: .5em .5em .5em .7em; - font-size: 100%; -} -.ui-accordion .ui-accordion-content { - padding: 1em 2.2em; - border-top: 0; - overflow: auto; -} -.ui-autocomplete { - position: absolute; - top: 0; - left: 0; - cursor: default; -} -.ui-menu { - list-style: none; - padding: 0; - margin: 0; - display: block; - outline: 0; -} -.ui-menu .ui-menu { - position: absolute; -} -.ui-menu .ui-menu-item { - margin: 0; - cursor: pointer; - /* support: IE10, see #8844 */ - list-style-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAP///yH5BAEALAABAAEAAAIBRAA7"); -} -.ui-menu .ui-menu-item-wrapper { - position: relative; - padding: 3px 1em 3px .4em; -} -.ui-menu .ui-menu-divider { - margin: 5px 0; - height: 0; - font-size: 0; - line-height: 0; - border-width: 1px 0 0 0; -} -.ui-menu .ui-state-focus, -.ui-menu .ui-state-active { - margin: -1px; -} - -/* icon support */ -.ui-menu-icons { - position: relative; -} -.ui-menu-icons .ui-menu-item-wrapper { - padding-left: 2em; -} - -/* left-aligned */ -.ui-menu .ui-icon { - position: absolute; - top: 0; - bottom: 0; - left: .2em; - margin: auto 0; -} - -/* right-aligned */ -.ui-menu .ui-menu-icon { - left: auto; - right: 0; -} -.ui-button { - padding: .4em 1em; - display: inline-block; - position: relative; - line-height: normal; - margin-right: .1em; - cursor: pointer; - vertical-align: middle; - text-align: center; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - - /* Support: IE <= 11 */ - overflow: visible; -} - -.ui-button, -.ui-button:link, -.ui-button:visited, -.ui-button:hover, -.ui-button:active { - text-decoration: none; -} - -/* to make room for the icon, a width needs to be set here */ -.ui-button-icon-only { - width: 2em; - box-sizing: border-box; - text-indent: -px; - white-space: nowrap; -} - -/* no icon support for input elements */ -input.ui-button.ui-button-icon-only { - text-indent: 0;
[37/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/jquery-ui.min.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/jquery-ui.min.js b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/jquery-ui.min.js new file mode 100644 index 000..25398a1 --- /dev/null +++ b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/jquery-ui.min.js @@ -0,0 +1,13 @@ +/*! jQuery UI - v1.12.1 - 2016-09-14 +* http://jqueryui.com +* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/toolt ip.js +* Copyright jQuery Foundation and other contributors; Licensed MIT */ + +(function(t){"function"==typeof define&?define(["jquery"],t):t(jQuery)})(function(t){function e(t){for(var e=t.css("visibility");"inherit"===e;)t=t.parent(),e=t.css("visibility");return"hidden"!==e}function i(t){for(var e,i;t.length&[0]!==document;){if(e=t.css("position"),("absolute"===e||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}function s(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev" ,nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeM onthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=n(t(""))}function n(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,o)}function o(){t.datepicker._isDisabledDatepicker(m.inline?m.dpDiv.parent()[0]:m.input[0])||(t(this).parents(".ui-datepicker-calendar") .find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&(this).addClass("ui-datepicker-next-hover"))}function a(e,i){t.extend(e,i);for(var s in
[30/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/lightcolor/gray/jtable.min.css -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/lightcolor/gray/jtable.min.css b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/lightcolor/gray/jtable.min.css new file mode 100644 index 000..36d9f1d --- /dev/null +++ b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jtable.2.4.0/themes/lightcolor/gray/jtable.min.css @@ -0,0 +1 @@ +div.jtable-main-container{position:relative}div.jtable-main-container div.jtable-title{position:relative;text-align:left}div.jtable-main-container div.jtable-title .jtable-close-button{right:0;top:0;bottom:0;position:absolute}div.jtable-main-container div.jtable-title div.jtable-toolbar{bottom:0;right:0;position:absolute;display:inline-block;margin-right:5px}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item{position:relative;display:inline-block;margin:0 0 0 5px;cursor:pointer;font-size:.9em;padding:2px;vertical-align:bottom}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-icon{display:inline-block;margin:2px;vertical-align:middle;width:16px;height:16px}div.jtable-main-container div.jtable-title div.jtable-toolbar span.jtable-toolbar-item span.jtable-toolbar-item-text{display:inline-block;margin:2px;vertical-align:middle}div.jtable-main-container div.jtable-title .jtable-close-butt on+div.jtable-toolbar{margin-right:30px}div.jtable-main-container table.jtable{width:100%}div.jtable-main-container table.jtable thead th{vertical-align:middle;text-align:left}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container{position:relative}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container span.jtable-column-header-text{display:inline-block}div.jtable-main-container table.jtable thead th.jtable-column-header div.jtable-column-header-container div.jtable-column-resize-handler{position:absolute;height:24px;width:8px;right:-8px;top:-2px;z-index:2;cursor:col-resize}div.jtable-main-container table.jtable thead th.jtable-command-column-header{text-align:center}div.jtable-main-container table.jtable thead th.jtable-column-header-selecting{text-align:center;width:1%}div.jtable-main-container table.jtable thead th.jtable-column-header-selecting input{cursor:pointer}div.jtable-main-c ontainer table.jtable thead th.jtable-column-header-sortable{cursor:pointer}div.jtable-main-container table.jtable tbody tr>td .jtable-command-button{margin:0;padding:0;cursor:pointer;border:none;display:inline}div.jtable-main-container table.jtable tbody tr>td .jtable-command-button span{display:none}div.jtable-main-container table.jtable tbody tr>td.jtable-command-column{text-align:center;vertical-align:middle}div.jtable-main-container table.jtable tbody tr>td.jtable-selecting-column{text-align:center;vertical-align:middle}div.jtable-main-container table.jtable tbody tr>td.jtable-selecting-column input{cursor:pointer}div.jtable-main-container table.jtable tbody tr.jtable-no-data-row{text-align:center}div.jtable-main-container>div.jtable-bottom-panel{position:relative;min-height:24px;text-align:left}div.jtable-main-container>div.jtable-bottom-panel div.jtable-right-area{right:0;top:0;bottom:0;position:absolute}div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list{disp lay:inline-block}div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-space,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-first,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-last,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-previous,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-next,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-active{padding:2px 5px;display:inline-block;cursor:pointer}div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-space,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-number-active,div.jtable-main-container>div.jtable-bottom-panel .jtable-page-list .jtable-page-numb er-disabled{cursor:default}div.jtable-main-container>div.jtable-bottom-panel span.jtable-page-size-change{margin-left:5px}div.jtable-main-container>div.jtable-bottom-panel
[23/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/attributes.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/attributes.js b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/attributes.js deleted file mode 100644 index bb71036..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/attributes.js +++ /dev/null @@ -1,364 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache license, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the license for the specific language governing permissions and - * limitations under the license. - */ -$(document).ready(function () { -$('#AttributesTableContainer').jtable({ -title: 'Table of Attributes', -paging: true, //Enable paging -pageSize: 25, //Set page size (default: 25) -sorting: true, //Enable sorting -defaultSorting: 'Name ASC', //Set default sorting -actions: { -listAction: 'api/attributes/list', -}, -toolbar: { -items: [{ -icon: 'js/jtable.2.4.0/themes/metro/add.png', -text: 'Add new record', -click: () => { addEditAttributeItem() } -}] -}, -fields: { -id: { -key: true, -list: false -}, -name: { -title: 'Name', -width: '15%' -}, -displayName: { -title: 'Display Name', -width: '15%' -}, -description: { -title: 'Description', -width: '25%' -}, -dataType: { -title: 'Data Type', -width: '5%' -}, -indexed: { -title: 'Indexed', -width: '5%', -display: function (attributeData) { -return attributeData.record.indexed ? 'true' : 'false'; -} -}, -sortable: { -title: 'Sortable', -width: '5%', -display: function (attributeData) { -return attributeData.record.sortable ? 'true' : 'false'; -} -}, -required: { -title: 'Required', -width: '5%', -display: function (attributeData) { -return attributeData.record.required ? 'true' : 'false'; -} -}, -requestContext: { -title: 'RequestContext', -width: '3%', -display: function (attributeData) { -return attributeData.record.requestContext ? 'true' : 'false'; -} -}, -constraints: { -title: 'Constraints', -width: '16%', -sorting: false, -edit: false, -create: false, -display: function (attributeData) { -var constraintList = ''; -if (typeof(attributeData.record.constraints) != 'undefined' && attributeData.record.constraints != null) { -constraintList = attributeData.record.constraints.map(function (elem) { -return elem.constraintType.name + '("' + elem.value + '")' -}).join(' | '); -} -//Create a div that will be used to view associated attributes -var $divConstraints = $('' + constraintList + ''); -return $divConstraints; -} -}, -edit: { -title: '', -width: '2%', -display: function (attributeData) { -// Store attribute item data in localStorage -var attributeDataItem = JSON.stringify(attributeData.record); -localStorage.setItem('attributeItem' + attributeData.record.id,attributeDataItem); -return ''; -} -}, -delete: { -title: '', -width: '2%', -
[44/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-2.2.4.min.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-2.2.4.min.js b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-2.2.4.min.js new file mode 100644 index 000..4024b66 --- /dev/null +++ b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-2.2.4.min.js @@ -0,0 +1,4 @@ +/*! jQuery v2.2.4 | (c) jQuery Foundation | jquery.org/license */ +!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="2.2.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this ,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&(c)?c:[]):f=c&(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&===a.window},isNumeric:function(a){va r b=a&();return!n.isArray(a)&(b)+1>=0},isPlainObject:function(a){var b;if("object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype||{},"isPrototypeOf"))return!1;for(b in a);return void 0===b||k.call(a,b)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=d.createElement("script"),b.text=a,d.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+""). replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:h.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&(e);else for(g in a)e=b(a[g],g,c),null!=e&(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(d=e.call(arguments,2),f=function(){return a.apply(b||this,d.concat(e.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[obj ect "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&>0& in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return
[41/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/external/jquery/jquery.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/external/jquery/jquery.js b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/external/jquery/jquery.js new file mode 100644 index 000..7fc60fc --- /dev/null +++ b/log4j-catalog/log4j-catalog-editor/src/main/resources/static/js/jquery-ui-1.12.1/external/jquery/jquery.js @@ -0,0 +1,11008 @@ +/*! + * jQuery JavaScript Library v1.12.4 + * http://jquery.com/ + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license + * http://jquery.org/license + * + * Date: 2016-05-20T17:17Z + */ + +(function( global, factory ) { + + if ( typeof module === "object" && typeof module.exports === "object" ) { + // For CommonJS and CommonJS-like environments where a proper `window` + // is present, execute the factory and get jQuery. + // For environments that do not have a `window` with a `document` + // (such as Node.js), expose a factory as module.exports. + // This accentuates the need for the creation of a real `window`. + // e.g. var jQuery = require("jquery")(window); + // See ticket #14549 for more info. + module.exports = global.document ? + factory( global, true ) : + function( w ) { + if ( !w.document ) { + throw new Error( "jQuery requires a window with a document" ); + } + return factory( w ); + }; + } else { + factory( global ); + } + +// Pass this if window is not defined yet +}(typeof window !== "undefined" ? window : this, function( window, noGlobal ) { + +// Support: Firefox 18+ +// Can't be in strict mode, several libs including ASP.NET trace +// the stack via arguments.caller.callee and Firefox dies if +// you try to trace through "use strict" call chains. (#13335) +//"use strict"; +var deletedIds = []; + +var document = window.document; + +var slice = deletedIds.slice; + +var concat = deletedIds.concat; + +var push = deletedIds.push; + +var indexOf = deletedIds.indexOf; + +var class2type = {}; + +var toString = class2type.toString; + +var hasOwn = class2type.hasOwnProperty; + +var support = {}; + + + +var + version = "1.12.4", + + // Define a local copy of jQuery + jQuery = function( selector, context ) { + + // The jQuery object is actually just the init constructor 'enhanced' + // Need init if jQuery is called (just allow error to be thrown if not included) + return new jQuery.fn.init( selector, context ); + }, + + // Support: Android<4.1, IE<9 + // Make sure we trim BOM and NBSP + rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, + + // Matches dashed string for camelizing + rmsPrefix = /^-ms-/, + rdashAlpha = /-([\da-z])/gi, + + // Used by jQuery.camelCase as callback to replace() + fcamelCase = function( all, letter ) { + return letter.toUpperCase(); + }; + +jQuery.fn = jQuery.prototype = { + + // The current version of jQuery being used + jquery: version, + + constructor: jQuery, + + // Start with an empty selector + selector: "", + + // The default length of a jQuery object is 0 + length: 0, + + toArray: function() { + return slice.call( this ); + }, + + // Get the Nth element in the matched element set OR + // Get the whole matched element set as a clean array + get: function( num ) { + return num != null ? + + // Return just the one element from the set + ( num < 0 ? this[ num + this.length ] : this[ num ] ) : + + // Return all the elements in a clean array + slice.call( this ); + }, + + // Take an array of elements and push it onto the stack + // (returning the new matched element set) + pushStack: function( elems ) { + + // Build a new jQuery matched element set + var ret = jQuery.merge( this.constructor(), elems ); + + // Add the old object onto the stack (as a reference) + ret.prevObject = this; + ret.context = this.context; + + // Return the newly-formed element set + return ret; + }, + + // Execute a callback for every element in the matched set. +
[17/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_44_256x240.png -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_44_256x240.png b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_44_256x240.png deleted file mode 100644 index c2daae1..000 Binary files a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_44_256x240.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_55_256x240.png -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_55_256x240.png b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_55_256x240.png deleted file mode 100644 index 4784928..000 Binary files a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_55_256x240.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_777620_256x240.png -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_777620_256x240.png b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_777620_256x240.png deleted file mode 100644 index d2f58d2..000 Binary files a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_777620_256x240.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_77_256x240.png -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_77_256x240.png b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_77_256x240.png deleted file mode 100644 index 1d53258..000 Binary files a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_77_256x240.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_cc_256x240.png -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_cc_256x240.png b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_cc_256x240.png deleted file mode 100644 index 2825f20..000 Binary files a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_cc_256x240.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_ff_256x240.png -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_ff_256x240.png b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_ff_256x240.png deleted file mode 100644 index 136a4f9..000 Binary files a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/images/ui-icons_ff_256x240.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/index.html -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/index.html b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/index.html deleted file mode 100644 index 1796b1c..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jquery-ui-1.12.1/index.html +++ /dev/null @@ -1,559 +0,0 @@ - - - - - jQuery UI Example Page - - - body{ - font-family: "Trebuchet MS", sans-serif; - margin: 50px; - } - .demoHeaders { - margin-top: 2em; - } - #dialog-link { - padding: .4em 1em .4em 20px; - text-decoration: none; - position: relative;
[11/46] logging-log4j-audit git commit: Fixed the catalog editor. Support using a branch
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/7ccfa3aa/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/jquery.jtable.js -- diff --git a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/jquery.jtable.js b/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/jquery.jtable.js deleted file mode 100644 index 869af24..000 --- a/log4j-catalog/log4j-catalog-editor/src/main/webapp/js/jtable.2.4.0/jquery.jtable.js +++ /dev/null @@ -1,5021 +0,0 @@ -/* - -jTable 2.4.0 -http://www.jtable.org - - -Copyright (C) 2011-2014 by Halil İbrahim Kalkan (http://www.halilibrahimkalkan.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -*/ - -/ -* CORE jTable module* -*/ -(function ($) { - -var unloadingPage; - -$(window).on('beforeunload', function () { -unloadingPage = true; -}); -$(window).on('unload', function () { -unloadingPage = false; -}); - -$.widget("hik.jtable", { - - / -* DEFAULT OPTIONS / EVENTS * - */ -options: { - -//Options -actions: {}, -fields: {}, -animationsEnabled: true, -defaultDateFormat: 'yy-mm-dd', -dialogShowEffect: 'fade', -dialogHideEffect: 'fade', -showCloseButton: false, -loadingAnimationDelay: 500, -saveUserPreferences: true, -jqueryuiTheme: false, -unAuthorizedRequestRedirectUrl: null, - -ajaxSettings: { -type: 'POST', -dataType: 'json' -}, - -toolbar: { -hoverAnimation: true, -hoverAnimationDuration: 60, -hoverAnimationEasing: undefined, -items: [] -}, - -//Events -closeRequested: function (event, data) { }, -formCreated: function (event, data) { }, -formSubmitting: function (event, data) { }, -formClosed: function (event, data) { }, -loadingRecords: function (event, data) { }, -recordsLoaded: function (event, data) { }, -rowInserted: function (event, data) { }, -rowsRemoved: function (event, data) { }, - -//Localization -messages: { -serverCommunicationError: 'An error occured while communicating to the server.', -loadingMessage: 'Loading records...', -noDataAvailable: 'No data available!', -areYouSure: 'Are you sure?', -save: 'Save', -saving: 'Saving', -cancel: 'Cancel', -error: 'Error', -close: 'Close', -cannotLoadOptionsFor: 'Can not load options for field {0}' -} -}, - - / -* PRIVATE FIELDS * - */ - -_$mainContainer: null, //Reference to the main container of all elements that are created by this plug-in (jQuery object) - -_$titleDiv: null, //Reference to the title div (jQuery object) -_$toolbarDiv: null, //Reference to the toolbar div (jQuery object) - -_$table: null, //Reference to the main
logging-log4j2 git commit: Make title more consistent
Repository: logging-log4j2 Updated Branches: refs/heads/master 812c96df8 -> 30976bd54 Make title more consistent Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/30976bd5 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/30976bd5 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/30976bd5 Branch: refs/heads/master Commit: 30976bd5488450e77d85403605a207378c3e5cc1 Parents: 812c96d Author: Matt SickerAuthored: Sun Apr 8 13:35:29 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 13:35:29 2018 -0500 -- src/site/asciidoc/manual/async.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/30976bd5/src/site/asciidoc/manual/async.adoc -- diff --git a/src/site/asciidoc/manual/async.adoc b/src/site/asciidoc/manual/async.adoc index 65bc711..f39a759 100644 --- a/src/site/asciidoc/manual/async.adoc +++ b/src/site/asciidoc/manual/async.adoc @@ -1,4 +1,4 @@ -= Log4j 2 Lock-free Asynchronous Loggers for Low-Latency Logging += Lock-free Asynchronous Loggers for Low-Latency Logging Remko Popma Asynchronous logging can improve your application's performance by
[5/8] logging-log4j2 git commit: LOG4J2-1802: Convert configuration manual page to asciidoc
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/b53b8118/src/site/xdoc/manual/configuration.xml.vm -- diff --git a/src/site/xdoc/manual/configuration.xml.vm b/src/site/xdoc/manual/configuration.xml.vm deleted file mode 100644 index 8acdd40..000 --- a/src/site/xdoc/manual/configuration.xml.vm +++ /dev/null @@ -1,2383 +0,0 @@ - - - -#set($dollar = '$') - -http://maven.apache.org/XDOC/2.0; - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; - xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd;> - -Configuring Log4j 2 -Ralph Goers - - - - -#if (!$alignedFileName) -#set ($isPDF = true) -#else -#set ($isPDF = false) -#end -Inserting log requests into the application code requires a fair - amount of planning and effort. Observation shows that approximately 4 - percent of code is dedicated to logging. Consequently, even moderately - sized applications will have thousands of logging statements embedded - within their code. Given their number, it becomes imperative to - manage these log statements without the need to modify them manually. - - - Configuration of Log4j 2 can be accomplished in 1 of 4 ways: - - -Through a configuration file written in XML, JSON, YAML, or properties format. -Programmatically, by creating a ConfigurationFactory and Configuration implementation. -Programmatically, by calling the APIs exposed in the Configuration interface to add - components to the default configuration. -Programmatically, by calling methods on the internal Logger class. - - - This page focuses primarily on configuring Log4j through a configuration file. Information on - programmatically configuring Log4j can be found at Extending Log4j 2 - and Programmatic Log4j Configuration. - - - Note that unlike Log4j 1.x, the public Log4j 2 API does not expose methods to add, modify or remove - appenders and filters or manipulate the configuration in any way. - - - - -Log4j has the ability to automatically configure itself during initialization. -When Log4j starts it will locate all the ConfigurationFactory plugins and arrange them in weighted -order from highest to lowest. As delivered, Log4j contains four ConfigurationFactory implementations: -one for JSON, one for YAML, one for properties, and one for XML. - - - Log4j will inspect the "log4j.configurationFile" system property and, if set, will attempt to -load the configuration using the ConfigurationFactory that matches the file -extension. - If no system property is set the properties ConfigurationFactory will look for -log4j2-test.properties in the classpath. - If no such file is found the YAML ConfigurationFactory will look for -log4j2-test.yaml or log4j2-test.yml in the classpath. - If no such file is found the JSON ConfigurationFactory will look for -log4j2-test.json or log4j2-test.jsn in the classpath. - If no such file is found the XML ConfigurationFactory will look for -log4j2-test.xml in the classpath. - If a test file cannot be located the properties ConfigurationFactory will look for -log4j2.properties on the classpath. - If a properties file cannot be located the YAML ConfigurationFactory will look for -log4j2.yaml or log4j2.yml on the classpath. - If a YAML file cannot be located the JSON ConfigurationFactory will look for -log4j2.json or log4j2.jsn on the classpath. - If a JSON file cannot be located the XML ConfigurationFactory will try to locate -log4j2.xml on the classpath. - If no configuration file could be located the DefaultConfiguration will -be used. This will cause logging output to go to the console. - - An example application named MyApp that uses log4j can be used to illustrate how -this is done. - - - -MyApp begins by importing log4j related classes. It -then defines a static logger variable with the name MyApp -which happens to be the fully qualified name of the class. - - -MyApp uses the Bar class defined in the packagecom.foo. - - - -Log4j will provide a default configuration if it cannot locate a
[4/8] logging-log4j2 git commit: LOG4J2-1802: Convert JMX manual page to asciidoc
LOG4J2-1802: Convert JMX manual page to asciidoc Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/a15df802 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/a15df802 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/a15df802 Branch: refs/heads/master Commit: a15df802c4fd253e9cddac18e8674cddca806213 Parents: 86e8caa Author: Matt SickerAuthored: Sun Apr 8 16:16:29 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 20:08:49 2018 -0500 -- src/site/asciidoc/manual/jmx.adoc | 208 + src/site/xdoc/manual/jmx.xml.vm | 189 -- 2 files changed, 208 insertions(+), 189 deletions(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/a15df802/src/site/asciidoc/manual/jmx.adoc -- diff --git a/src/site/asciidoc/manual/jmx.adoc b/src/site/asciidoc/manual/jmx.adoc new file mode 100644 index 000..057134f --- /dev/null +++ b/src/site/asciidoc/manual/jmx.adoc @@ -0,0 +1,208 @@ + +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + +https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + += JMX +Remko Popma + +Log4j 2 has built-in support for JMX. The StatusLogger, ContextSelector, +and all LoggerContexts, LoggerConfigs and Appenders are instrumented +with MBeans and can be remotely monitored and controlled. + +Also included is a simple client GUI that can be used to monitor the +StatusLogger output, as well as to remotely reconfigure Log4j with a +different configuration file, or to edit the current configuration +directly. + +[#Enabling_JMX] +== Enabling JMX + +JMX support is enabled by default. When Log4j initializes, the +StatusLogger, ContextSelector, and all LoggerContexts, LoggerConfigs and +Appenders are instrumented with MBeans. To disable JMX completely, and +prevent these MBeans from being created, specify system property +`log4j2.disableJmx` to `true` when you start the Java VM. + +[#Local] +== Local Monitoring and Management + +To perform local monitoring you don't need to specify any system +properties. The JConsole tool that is included in the Java JDK can be +used to monitor your application. Start JConsole by typing +`$JAVA_HOME/bin/jconsole` in a command shell. For more details, +see Oracle's documentation on +https://docs.oracle.com/javase/7/docs/technotes/guides/management/jconsole.html[how +to use JConsole]. + +[#Remote] +== Remote Monitoring and Management + +To enable monitoring and management from remote systems, set the +following system property when starting the Java VM. + +`com.sun.management.jmxremote.port=portNum` + +In the property above, `portNum` is the port number through which you +want to enable JMX RMI connections. + +For more details, see Oracle's documentation on +https://docs.oracle.com/javase/7/docs/technotes/guides/management/agent.html#gdenl[Remote +Monitoring and Management]. + +[#RMI_GC] +== RMI impact on Garbage Collection + +Be aware that RMI by default triggers a full GC every hour. See the +https://docs.oracle.com/javase/7/docs/technotes/guides/rmi/sunrmiproperties.html[Oracle +documentation] for the `sun.rmi.dgc.server.gcInterval` and +`sun.rmi.dgc.client.gcInterval` properties. The default value of both +properties is 360 milliseconds (one hour). Before Java 6, it was one +minute. + +The two sun.rmi arguments reflect whether your JVM is running in server +or client mode. If you want to modify the GC interval time it may be +best to specify both properties to ensure the argument is picked up by +the JVM. + +An alternative may be to disable explicit calls to `System.gc()` +altogether with `-XX:+DisableExplicitGC`, or (if you are using the CMS +or G1 collector) add `-XX:+ExplicitGCInvokesConcurrent` to ensure the +full GCs are done concurrently in parallel with your application instead +of forcing a stop-the-world collection. + +[#Log4j_MBeans] +== Log4j Instrumented Components + +The best way to find out which
[3/8] logging-log4j2 git commit: LOG4J2-1802: Convert custom log levels manual page to asciidoc
LOG4J2-1802: Convert custom log levels manual page to asciidoc Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/fe2601c1 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/fe2601c1 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/fe2601c1 Branch: refs/heads/master Commit: fe2601c101070b69503ac94ba63758995384a1b2 Parents: a15df80 Author: Matt SickerAuthored: Sun Apr 8 18:23:54 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 20:08:49 2018 -0500 -- src/site/asciidoc/manual/customloglevels.adoc | 323 +++ src/site/xdoc/manual/customloglevels.xml.vm | 347 - 2 files changed, 323 insertions(+), 347 deletions(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/fe2601c1/src/site/asciidoc/manual/customloglevels.adoc -- diff --git a/src/site/asciidoc/manual/customloglevels.adoc b/src/site/asciidoc/manual/customloglevels.adoc new file mode 100644 index 000..e633b52 --- /dev/null +++ b/src/site/asciidoc/manual/customloglevels.adoc @@ -0,0 +1,323 @@ + +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + +https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + += Custom Log Levels +Remko Popma + +[[top]] + +[#DefiningLevelsInCode] +== Defining Custom Log Levels in Code + +Log4j 2 supports custom log levels. Custom log levels can be defined in +code or in configuration. To define a custom log level in code, use the +`Level.forName()` method. This method creates a new level for the +specified name. After a log level is defined you can log messages at +this level by calling the `Logger.log()` method and passing the custom log +level: + +[source,java] + +// This creates the "VERBOSE" level if it does not exist yet. +final Level VERBOSE = Level.forName("VERBOSE", 550); + +final Logger logger = LogManager.getLogger(); +logger.log(VERBOSE, "a verbose message"); // use the custom VERBOSE level + +// Create and use a new custom level "DIAG". +logger.log(Level.forName("DIAG", 350), "a diagnostic message"); + +// Use (don't create) the "DIAG" custom level. +// Only do this *after* the custom level is created! +logger.log(Level.getLevel("DIAG"), "another diagnostic message"); + +// Using an undefined level results in an error: Level.getLevel() returns null, +// and logger.log(null, "message") throws an exception. +logger.log(Level.getLevel("FORGOT_TO_DEFINE"), "some message"); // throws exception! + + +When defining a custom log level, the `intLevel` parameter (550 and 350 +in the example above) determines where the custom level exists in +relation to the standard levels built-in to Log4j 2. For reference, the +table below shows the `intLevel` of the built-in log levels. + +.Standard log levels built-in to Log4j +[cols=",>",options="header"] +| +|Standard Level |intLevel +|OFF |0 +|FATAL |100 +|ERROR |200 +|WARN |300 +|INFO |400 +|DEBUG |500 +|TRACE |600 +|ALL |`Integer.MAX_VALUE` +| + +[#DefiningLevelsInConfiguration] +== Defining Custom Log Levels in Configuration + +Custom log levels can also be defined in configuration. This is +convenient for using a custom level in a logger filter or an appender +filter. Similar to defining log levels in code, a custom level must be +defined first, before it can be used. If a logger or appender is +configured with an undefined level, that logger or appender will be +invalid and will not process any log events. + +The *CustomLevel* configuration element creates a custom level. +Internally it calls the same `Level.forName()` method discussed above. + +.CustomLevel Parameters +[cols="m,,4",options="header"] +|=== +|Parameter Name |Type |Description + +|name +|String +|The name of the custom level. Note that level names are +case sensitive. The convention is to use all upper-case names. + +|intLevel +|integer +|Determines where the custom level exists in relation +to the standard levels built-in
[6/8] logging-log4j2 git commit: LOG4J2-1802: Convert configuration manual page to asciidoc
LOG4J2-1802: Convert configuration manual page to asciidoc Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/b53b8118 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/b53b8118 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/b53b8118 Branch: refs/heads/master Commit: b53b8118dbcff25b0bc64fab5cab6fe1ea84163b Parents: fe2601c Author: Matt SickerAuthored: Sun Apr 8 19:24:00 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 20:08:49 2018 -0500 -- src/site/asciidoc/manual/configuration.adoc | 2192 src/site/xdoc/manual/configuration.xml.vm | 2383 -- 2 files changed, 2192 insertions(+), 2383 deletions(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/b53b8118/src/site/asciidoc/manual/configuration.adoc -- diff --git a/src/site/asciidoc/manual/configuration.adoc b/src/site/asciidoc/manual/configuration.adoc new file mode 100644 index 000..138e3f0 --- /dev/null +++ b/src/site/asciidoc/manual/configuration.adoc @@ -0,0 +1,2192 @@ + +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + +https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + += Configuration +Ralph Goers + +Inserting log requests into the application code requires a fair amount +of planning and effort. Observation shows that approximately 4 percent +of code is dedicated to logging. Consequently, even moderately sized +applications will have thousands of logging statements embedded within +their code. Given their number, it becomes imperative to manage these +log statements without the need to modify them manually. + +Configuration of Log4j 2 can be accomplished in 1 of 4 ways: + +1. Through a configuration file written in XML, JSON, YAML, or +properties format. +2. Programmatically, by creating a ConfigurationFactory and +Configuration implementation. +3. Programmatically, by calling the APIs exposed in the Configuration +interface to add components to the default configuration. +4. Programmatically, by calling methods on the internal Logger class. + +This page focuses primarily on configuring Log4j through a configuration +file. Information on programmatically configuring Log4j can be found at +link:extending.html[Extending Log4j 2] and +link:customconfig.html[Programmatic Log4j Configuration]. + +Note that unlike Log4j 1.x, the public Log4j 2 API does not expose +methods to add, modify or remove appenders and filters or manipulate the +configuration in any way. + +[#AutomaticConfiguration] +== Automatic Configuration + +Log4j has the ability to automatically configure itself during +initialization. When Log4j starts it will locate all the +ConfigurationFactory plugins and arrange them in weighted order from +highest to lowest. As delivered, Log4j contains four +ConfigurationFactory implementations: one for JSON, one for YAML, one +for properties, and one for XML. + +1. Log4j will inspect the `"log4j.configurationFile"` system property +and, if set, will attempt to load the configuration using the +`ConfigurationFactory` that matches the file extension. +2. If no system property is set the properties ConfigurationFactory +will look for `log4j2-test.properties` in the classpath. +3. If no such file is found the YAML ConfigurationFactory will look for +`log4j2-test.yaml` or `log4j2-test.yml` in the classpath. +4. If no such file is found the JSON ConfigurationFactory will look for +`log4j2-test.json` or `log4j2-test.jsn` in the classpath. +5. If no such file is found the XML ConfigurationFactory will look for +`log4j2-test.xml` in the classpath. +6. If a test file cannot be located the properties ConfigurationFactory +will look for `log4j2.properties` on the classpath. +7. If a properties file cannot be located the YAML ConfigurationFactory +will look for `log4j2.yaml` or `log4j2.yml` on the classpath. +8. If a YAML file cannot be located the JSON ConfigurationFactory will +look for
[2/8] logging-log4j2 git commit: LOG4J2-1802: Convert lookups manual page to asciidoc
LOG4J2-1802: Convert lookups manual page to asciidoc Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/1079bef3 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/1079bef3 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/1079bef3 Branch: refs/heads/master Commit: 1079bef340dc821cd92e9af8e502adf136e06725 Parents: 0a60a4a Author: Matt SickerAuthored: Sun Apr 8 19:48:51 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 20:08:49 2018 -0500 -- src/site/asciidoc/manual/lookups.adoc | 498 src/site/xdoc/manual/lookups.xml | 511 - 2 files changed, 498 insertions(+), 511 deletions(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/1079bef3/src/site/asciidoc/manual/lookups.adoc -- diff --git a/src/site/asciidoc/manual/lookups.adoc b/src/site/asciidoc/manual/lookups.adoc new file mode 100644 index 000..89317dd --- /dev/null +++ b/src/site/asciidoc/manual/lookups.adoc @@ -0,0 +1,498 @@ + +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + +https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + += Lookups +Ralph Goers + +Lookups provide a way to add values to the Log4j configuration at +arbitrary places. They are a particular type of Plugin that implements +the +link:../log4j-core/apidocs/org/apache/logging/log4j/core/lookup/StrLookup.html[`StrLookup`] +interface. Information on how to use Lookups in configuration files can +be found in the link:configuration.html#PropertySubstitution[Property +Substitution] section of the link:configuration.html[Configuration] +page. + +[#ContextMapLookup] +== Context Map Lookup + +The ContextMapLookup allows applications to store data in the Log4j +ThreadContext Map and then retrieve the values in the Log4j +configuration. In the example below, the application would store the +current user's login id in the ThreadContext Map with the key "loginId". +During initial configuration processing the first '$' will be removed. +The PatternLayout supports interpolation with Lookups and will then +resolve the variable for each event. Note that the pattern +"%X\{loginId}" would achieve the same result. + +[source,xml] + + + +%d %p %c{1.} [%t] $${ctx:loginId} %m%n + + + + +[#DateLookup] +== Date Lookup + +The DateLookup is somewhat unusual from the other lookups as it doesn't +use the key to locate an item. Instead, the key can be used to specify a +date format string that is valid for +http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html[SimpleDateFormat]. +The current date, or the date associated with the current log event will +be formatted as specified. + +[source,xml] + + + +%d %p %c{1.} [%t] %m%n + + + + + +[#EnvironmentLookup] +== Environment Lookup + +The EnvironmentLookup allows systems to configure environment variables, +either in global files such as /etc/profile or in the startup scripts +for applications, and then retrieve those variables from within the +logging configuration. The example below includes the name of the +currently logged in user in the application log. + +[source,xml] + + + +%d %p %c{1.} [%t] $${env:USER} %m%n + + + + +This lookup also supports default value syntax. In the sample below, +when the `USER` environment variable is undefined, the default value +`jdoe` is used: + +[source,xml] + + + +%d %p %c{1.} [%t] $${env:USER:-jdoe} %m%n + + + + +[#JavaLookup] +== Java Lookup + +The JavaLookup allows Java environment information to be retrieved in +convenient preformatted strings using the `java:` prefix. + +[cols="1m,4a"] +|=== +|Key |Description + +|version +|The short Java version, like: + +`Java version 1.7.0_67` + +|runtime +|The Java runtime version, like: + +`Java(TM) SE Runtime Environment (build 1.7.0_67-b01) from Oracle Corporation` + +|vm +|The Java VM version, like: + +`Java HotSpot(TM) 64-Bit Server
[8/8] logging-log4j2 git commit: LOG4J2-1802: Convert filters manual page to asciidoc
LOG4J2-1802: Convert filters manual page to asciidoc Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/0a60a4ad Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/0a60a4ad Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/0a60a4ad Branch: refs/heads/master Commit: 0a60a4ad7480e03d1f26bbcaa45a6fad69d9b7c4 Parents: b53b811 Author: Matt SickerAuthored: Sun Apr 8 19:36:02 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 20:08:49 2018 -0500 -- src/site/asciidoc/manual/filters.adoc | 848 src/site/xdoc/manual/filters.xml | 879 - 2 files changed, 848 insertions(+), 879 deletions(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/0a60a4ad/src/site/asciidoc/manual/filters.adoc -- diff --git a/src/site/asciidoc/manual/filters.adoc b/src/site/asciidoc/manual/filters.adoc new file mode 100644 index 000..4796c90 --- /dev/null +++ b/src/site/asciidoc/manual/filters.adoc @@ -0,0 +1,848 @@ + +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + +https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + += Filters +Ralph Goers + +Filters allow Log Events to be evaluated to determine if or how they +should be published. A Filter will be called on one of its `filter` +methods and will return a `Result`, which is an Enum that has one of 3 +values - `ACCEPT`, `DENY` or `NEUTRAL`. + +Filters may be configured in one of four locations: + +1. Context-wide Filters are configured directly in the configuration. +Events that are rejected by these filters will not be passed to loggers +for further processing. Once an event has been accepted by a +Context-wide filter it will not be evaluated by any other Context-wide +Filters nor will the Logger's Level be used to filter the event. The +event will be evaluated by Logger and Appender Filters however. +2. Logger Filters are configured on a specified Logger. These are +evaluated after the Context-wide Filters and the Log Level for the +Logger. Events that are rejected by these filters will be discarded and +the event will not be passed to a parent Logger regardless of the +additivity setting. +3. Appender Filters are used to determine if a specific Appender should +handle the formatting and publication of the event. +4. Appender Reference Filters are used to determine if a Logger should +route the event to an appender. + +[#BurstFilter] +== BurstFilter + +The BurstFilter provides a mechanism to control the rate at which +LogEvents are processed by silently discarding events after the maximum +limit has been reached. + +.Burst Filter Parameters +[cols="1m,1,4"] +|=== +|Parameter Name |Type |Description + +|level +|String +|Level of messages to be filtered. Anything at or below +this level will be filtered out if `maxBurst` has been exceeded. The +default is WARN meaning any messages that are higher than warn will be +logged regardless of the size of a burst. + +|rate +|float +|The average number of events per second to allow. + +|maxBurst +|integer +|The maximum number of events that can occur before +events are filtered for exceeding the average rate. The default is 10 +times the rate. + +|onMatch +|String +|Action to take when the filter matches. May be ACCEPT, +DENY or NEUTRAL. The default value is NEUTRAL. + +|onMismatch +|String +|Action to take when the filter does not match. May +be ACCEPT, DENY or NEUTRAL. The default value is DENY. +|=== + +A configuration containing the BurstFilter might look like: + +[source,xml] + + + + + + + +%d %p %c{1.} [%t] %m%n + + + + + + + + + + + + +[#CompositeFilter] +== CompositeFilter + +The CompositeFilter provides a way to specify more than one filter. It +is added to the configuration as a filters element and contains other +filters to be evaluated. The filters element accepts no parameters. + +A configuration
[1/8] logging-log4j2 git commit: LOG4J2-1802: Convert garbage-free manual page to asciidoc
Repository: logging-log4j2 Updated Branches: refs/heads/master 86e8caa1e -> 59a9c2d4d LOG4J2-1802: Convert garbage-free manual page to asciidoc Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/59a9c2d4 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/59a9c2d4 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/59a9c2d4 Branch: refs/heads/master Commit: 59a9c2d4dce1c5f034aabe87eb939196b775b42e Parents: bd15f9d Author: Matt SickerAuthored: Sun Apr 8 20:08:36 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 20:08:49 2018 -0500 -- src/site/asciidoc/manual/garbagefree.adoc | 578 src/site/xdoc/manual/garbagefree.xml | 598 - 2 files changed, 578 insertions(+), 598 deletions(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/59a9c2d4/src/site/asciidoc/manual/garbagefree.adoc -- diff --git a/src/site/asciidoc/manual/garbagefree.adoc b/src/site/asciidoc/manual/garbagefree.adoc new file mode 100644 index 000..0b88426 --- /dev/null +++ b/src/site/asciidoc/manual/garbagefree.adoc @@ -0,0 +1,578 @@ + +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + += Garbage-free Steady State Logging +Remko Popma + + +Different applications have different performance requirements. +Some only need to worry about throughput, but for many +the most important performance consideration is latency (response time). +Users of such applications would consider it a serious problem +if the system becomes unresponsive for more than a few seconds, or even milliseconds in some cases. +In financial trading for example predictable low latency is so important that it is often considered +worthwhile to trade off some throughput in return for a consistent response time. + + +Garbage collection pauses are a common cause of latency spikes and for +many systems significant effort is spent on controlling these pauses. + +Many logging libraries, including previous versions of Log4j, allocate +temporary objects like log event objects, Strings, char arrays, byte +arrays and more during steady state logging. This contributes to +pressure on the garbage collector and increases the frequency with which +GC pauses occur. + +From version 2.6, Log4j runs in "garbage free" mode by default where +objects and buffers are reused and no temporary objects are allocated as +much as possible. There is also a "low garbage" mode which is not +completely garbage free but does not use ThreadLocal fields. This is the +default mode when Log4j link:#Config[detects] it is running in a web +application. Finally, it is possible to switch off all garbage-free +logic and run in "classic mode" instead. For details, see the +link:#Config[Configuration] section below. + +[#jfr] +== A Contrived Example + +To highlight the difference that garbage-free logging can make, we used +Java Flight Recorder to measure a simple application that does nothing +but log a simple string as often as possible for about 12 seconds. + +The application was configured to use Async Loggers, a RandomAccessFile +appender and a "%d %p %c{1.} [%t] %m %ex%n" pattern layout. (Async +Loggers used the Yield WaitStrategy.) + +Mission Control shows that with Log4j 2.5 this application allocates +memory at a rate of about 809 MB/sec, resulting in 141 minor +collections. Log4j 2.6 does not allocate temporary objects in this +configuration, and as a result the same application with Log4j 2.6 has a +memory allocation rate of 1.6 MB/sec and was GC-free with 0 (zero) +garbage collections. + +[cols="2*"] +|=== +|link:../images/log4j-2.5-FlightRecording.png[image:../images/log4j-2.5-FlightRecording-thumbnail40pct.png[image]] + +With Log4j 2.5: memory allocation rate 809 MB/sec, 141 minor +collections.
[1/3] logging-log4j2 git commit: LOG4J2-1802: Convert layouts manual page to asciidoc
Repository: logging-log4j2 Updated Branches: refs/heads/master 59a9c2d4d -> ffd4ab638 http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/f8e50945/src/site/xdoc/manual/layouts.xml.vm -- diff --git a/src/site/xdoc/manual/layouts.xml.vm b/src/site/xdoc/manual/layouts.xml.vm deleted file mode 100644 index 1340787..000 --- a/src/site/xdoc/manual/layouts.xml.vm +++ /dev/null @@ -1,2476 +0,0 @@ - - - - - -Log4j 2 Layouts -Ralph Goers -Gary Gregory - - #set($dollar = '$') - #set($sharp = '#') - #set($javadocRoot = 'http://docs.oracle.com/javase/6/docs/api') - #macro(javadoc $path $class) - ${class} - #end - #set($Charset = "Charset") - #if (!$alignedFileName) -#set ($isPDF = true) -#set ($break = '') - #else -#set ($isPDF = false) -#set ($break = '') - #end - - -An Appender uses a Layout to format a LogEvent into a form that meets the needs of whatever will be - consuming the log event. In Log4j 1.x and Logback Layouts were expected to transform an event into a - String. In Log4j 2 Layouts return a byte array. This allows the result of the Layout to be useful in - many more types of Appenders. However, this means you need to configure most Layouts with a ${Charset} to - ensure the byte array contains correct values. - - - The root class for layouts that use a Charset is org.apache.logging.log4j.core.layout.AbstractStringLayout - where the default is UTF-8. Each layout that extends AbstractStringLayout - can provide its own default. See each layout below. - - - A custom character encoder was added to Log4j 2.4.1 for the ISO-8859-1 and US-ASCII charsets, - to bring some of the performance improvements built-in to Java 8 to Log4j for use on Java 7. - For applications that log only ISO-8859-1 characters, specifying this charset will improve performance significantly. - - - - - As of Log4j 2.11.0, CSV support has moved from the existing module logj-core to the new module log4j-csv. - - -This layout creates https://en.wikipedia.org/wiki/Comma-separated_values;>Comma Separated Value (CSV) -records and requires https://commons.apache.org/proper/commons-csv/;>Apache Commons CSV 1.4. - - -The CSV layout can be used in two ways: First, using CsvParameterLayout to log event parameters -to create a custom database, usually to a logger and file appender uniquely configured for this purpose. -Second, using CsvLogEventLayout to log events to create a database, as an alternative to using a -full DBMS or using a JDBC driver that supports the CSV format. - - -The CsvParameterLayout converts an event's parameters into a CSV record, ignoring the message. -To log CSV records, you can use the usual Logger methods info(), debug(), and so on: - - -logger.info("Ignored", value1, value2, value3); - - -Which will create the CSV record: - - -value1, value2, value3 - - -Alternatively, you can use a ObjectArrayMessage, which only carries parameters: - - -logger.info(new ObjectArrayMessage(value1, value2, value3)); - - -The layouts CsvParameterLayout and CsvLogEventLayout are configured with the following parameters: - - -CsvParameterLayout and CsvLogEventLayout - - Parameter Name - Type - Description - - - format - String - -One of the predefined formats: Default, Excel, MySQL, -RFC4180, TDF. -See - https://commons.apache.org/proper/commons-csv/archives/1.4/apidocs/org/apache/commons/csv/CSVFormat.Predefined.html;>CSVFormat.Predefined. - - - - delimiter - Character - Sets the delimiter of the format to the specified character. - - - escape - Character - Sets the escape character of the format to the specified character. - - - quote - Character - Sets the quoteChar of the format to the specified character. - - - quoteMode - String - -Sets the output quote policy of the format to the specified value. One of: ALL, -MINIMAL, NON_NUMERIC, NONE. - - - - nullString -
[2/3] logging-log4j2 git commit: LOG4J2-1802: Convert layouts manual page to asciidoc
LOG4J2-1802: Convert layouts manual page to asciidoc Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/f8e50945 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/f8e50945 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/f8e50945 Branch: refs/heads/master Commit: f8e509452f6218116ba35b2b3458c9fc51c1166b Parents: 59a9c2d Author: Matt SickerAuthored: Sun Apr 8 21:14:47 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 21:14:47 2018 -0500 -- src/site/asciidoc/manual/layouts.adoc | 2136 src/site/xdoc/manual/layouts.xml.vm | 2476 2 files changed, 2136 insertions(+), 2476 deletions(-) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/f8e50945/src/site/asciidoc/manual/layouts.adoc -- diff --git a/src/site/asciidoc/manual/layouts.adoc b/src/site/asciidoc/manual/layouts.adoc new file mode 100644 index 000..d9270ae --- /dev/null +++ b/src/site/asciidoc/manual/layouts.adoc @@ -0,0 +1,2136 @@ + +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + += Layouts +Ralph Goers ; Gary Gregory + +An Appender uses a Layout to format a LogEvent into a form that meets +the needs of whatever will be consuming the log event. In Log4j 1.x and +Logback Layouts were expected to transform an event into a String. In +Log4j 2 Layouts return a byte array. This allows the result of the +Layout to be useful in many more types of Appenders. However, this means +you need to configure most Layouts with a +https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html[`Charset`] +to ensure the byte array contains correct values. + +The root class for layouts that use a Charset is +`org.apache.logging.log4j.core.layout.AbstractStringLayout` where the +default is UTF-8. Each layout that extends `AbstractStringLayout` can +provide its own default. See each layout below. + +A custom character encoder was added to Log4j 2.4.1 for the ISO-8859-1 +and US-ASCII charsets, to bring some of the performance improvements +built-in to Java 8 to Log4j for use on Java 7. For applications that log +only ISO-8859-1 characters, specifying this charset will improve +performance significantly. + +[#CSVLayouts] +== CSV Layouts + +As of Log4j 2.11.0, CSV support has moved from the existing module +`logj-core` to the new module `log4j-csv`. + +This layout creates +https://en.wikipedia.org/wiki/Comma-separated_values[Comma Separated +Value (CSV)] records and requires +https://commons.apache.org/proper/commons-csv/[Apache Commons CSV] 1.4. + +The CSV layout can be used in two ways: First, using +`CsvParameterLayout` to log event parameters to create a custom +database, usually to a logger and file appender uniquely configured for +this purpose. Second, using `CsvLogEventLayout` to log events to create +a database, as an alternative to using a full DBMS or using a JDBC +driver that supports the CSV format. + +The `CsvParameterLayout` converts an event's parameters into a CSV +record, ignoring the message. To log CSV records, you can use the usual +Logger methods `info()`, `debug()`, and so on: + +[source,java] + +logger.info("Ignored", value1, value2, value3); + + +Which will create the CSV record: + + +value1, value2, value3 + + +Alternatively, you can use a `ObjectArrayMessage`, which only carries +parameters: + +[source,java] + +logger.info(new ObjectArrayMessage(value1, value2, value3)); + + +The layouts `CsvParameterLayout` and `CsvLogEventLayout` are configured +with the following parameters: + +.CsvParameterLayout and CsvLogEventLayout +[cols="1m,1,4"] +|=== +|Parameter Name |Type |Description + +|format +|String +|One of the predefined formats: `Default`, `Excel`, +`MySQL`, `RFC4180`, `TDF`. See
[3/3] logging-log4j2 git commit: LOG4J2-1802: Add changelog entry
LOG4J2-1802: Add changelog entry Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/ffd4ab63 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/ffd4ab63 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/ffd4ab63 Branch: refs/heads/master Commit: ffd4ab638fc353cc67f22ee3957db56dbe8a2c17 Parents: f8e5094 Author: Matt SickerAuthored: Sun Apr 8 21:16:05 2018 -0500 Committer: Matt Sicker Committed: Sun Apr 8 21:16:05 2018 -0500 -- src/changes/changes.xml | 3 +++ 1 file changed, 3 insertions(+) -- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/ffd4ab63/src/changes/changes.xml -- diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 62c2412..ad7e632 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -31,6 +31,9 @@ - "remove" - Removed --> + +Convert documentation into AsciiDoc format. + Improve plugin error message when elements are missing.