View Javadoc
1 /* ==================================================================== 2 * License: 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 11 * 2. Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in 13 * the documentation and/or other materials provided with the 14 * distribution. 15 * 16 * 3. The end-user documentation included with the redistribution, 17 * if any, must include the following acknowledgment: 18 * "This product includes software developed by 19 * Robert Half International (http://www.rhi.com/)." 20 * Alternately, this acknowledgment may appear in the software itself, 21 * if and wherever such third-party acknowledgments normally appear. 22 * 23 * 4. The names "Parc", "RHI", and "Robert Half International" must 24 * not be used to endorse or promote products derived from this 25 * software without prior written permission. For written 26 * permission, please contact pete.mckinstry@rhi.com. 27 * 28 * 5. Products derived from this software may not be called "PARC", 29 * nor may "PARC" appear in their name, without prior written 30 * permission of Robert Half International. 31 * 32 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 33 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 34 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR 36 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 38 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 39 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 40 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 41 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 42 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 43 * SUCH DAMAGE. 44 * ==================================================================== 45 * 46 */ 47 package com.rhi.architecture.logging; 48 49 import org.apache.log4j.PatternLayout; 50 51 /*** 52 * <P> 53 * This class contains peoplesoft place holders <BR> 54 * to be replaced with the actual values. <BR> 55 * </P> 56 * 57 * @author Ashish Agarwal 58 * @author Pete McKinstry - renamed & moved into new interface model. 59 * @version 1.0 60 */ 61 public class LogKeys { 62 63 /*** 64 * Holds the place holders key for all the place holder applicable. 65 */ 66 public static final String PLACE_HOLDERS = "place_holders"; 67 68 /*** 69 * Holds the place holder SPACE. 70 */ 71 public static final String SPACE_TAG = "<SPACE>"; 72 73 /*** 74 * space 75 */ 76 public static final String SPACE_VALUE = " "; 77 78 /*** 79 * Holds the place holder NEWLINE. 80 */ 81 public static final String NEWLINE_TAG = "<NEWLINE>"; 82 83 /*** 84 * The system dependent value for a newline 85 */ 86 public static String NEWLINE_VALUE = 87 System.getProperty("line.separator"); 88 89 /*** 90 * Holds the place holder TABLENAME. 91 */ 92 public static final String TABLENAME_TAG = "<TABLENAME>"; 93 94 /*** 95 * Holds the place holder GITTABLE. 96 */ 97 public static final String GITTABLE_TAG = "<GITTABLE>"; 98 99 /*** 100 * Holds the place holder ERROR_TABLE_NAME. 101 */ 102 public static final String ERROR_TABLE_TAG = "<ERROR_TABLE_NAME>"; 103 104 /*** 105 * Holds the place holder MESSAGE1_NOT_NULL_THEN_PRINT. 106 */ 107 public static final String MESSAGE1_TAG = 108 "<MESSAGE1_NOT_NULL_THEN_PRINT>"; 109 110 /*** 111 * only used if no substitution takes place. 112 */ 113 public static final String MESSAGE1_VALUE = ""; 114 115 /*** 116 * Holds the place holder MESSAGE2_NOT_NULL_THEN_PRINT. 117 */ 118 public static final String MESSAGE2_TAG = 119 "<MESSAGE2_NOT_NULL_THEN_PRINT>"; 120 121 /*** 122 * only used if no substitution takes place. 123 */ 124 public static final String MESSAGE2_VALUE = ""; 125 126 /*** 127 * Holds the place holder ACTUAL_VALUE. 128 */ 129 public static final String ACTUAL_VALUE_TAG = "<ACTUAL_VALUE>"; 130 131 /*** 132 * Holds the place holder ACTUAL_FIELD. 133 */ 134 public static final String ACTUAL_FIELD_TAG = "<ACTUAL_FIELD>"; 135 136 /*** 137 * Holds the place holder INPUT_FIELD_VALID. 138 */ 139 public static final String INPUT_FIELD_VALID_TAG = 140 "<INPUT_FIELD_VALID>"; 141 142 /*** 143 * Holds the place holder FILE_PATH. 144 */ 145 public static final String FILE_PATH_TAG = "<FILE_PATH>"; 146 147 /*** 148 * Holds the place holder FILE_NAME. 149 */ 150 public static final String FILE_NAME_TAG = "<FILE_NAME>"; 151 152 /*** 153 * desc - Layout for logging Regular statements. 154 */ 155 public static final String REGULAR_PATTERN = "(%F : %L : %p) - %m%n"; 156 /*** 157 * pattern layout. 158 */ 159 public static final PatternLayout REGULAR_PATTERN_LAYOUT = 160 new PatternLayout(REGULAR_PATTERN); 161 /*** 162 * desc - Layout for logging Error statements. 163 */ 164 public static final String ERROR_PATTERN = "%n %p %m%n"; 165 /*** 166 * error msg pattern layout. 167 */ 168 public static final PatternLayout ERROR_PATTERN_LAYOUT = 169 new PatternLayout(ERROR_PATTERN); 170 171 /*** 172 * date/time pattern 173 */ 174 public static final String DATETIME_PATTERN = "yyyy.MM.dd_hh:mm:ss"; 175 176 /*** 177 * data validation msg template key 178 */ 179 public static final String DATA_VALIDATION = 180 "Log.MsgTemplate.DATA_VALIDATION"; 181 /*** 182 * data not found msg template key 183 */ 184 public static final String DATA_NOT_FOUND = 185 "Log.MsgTemplate.DATA_NOT_FOUND"; 186 /*** 187 * sql exception msg template key 188 */ 189 public static final String SQL_EXECUTION = 190 "Log.MsgTemplate.SQL_EXECUTION"; 191 /*** 192 * fatal sql exception msg template key 193 */ 194 public static final String SQL_EXECUTION_FATAL = 195 "Log.MsgTemplate.SQL_EXECUTION_FATAL"; 196 /*** 197 * informational msg template key 198 */ 199 public static final String INFORMATION = "Log.MsgTemplate.INFORMATION"; 200 /*** 201 * fatal error msg template key 202 */ 203 public static final String FATAL = "Log.MsgTemplate.FATAL"; 204 /*** 205 * special msg template key 206 */ 207 public static final String SPECIAL = "Log.MsgTemplate.SPECIAL"; 208 /*** 209 * I/O error msg template key 210 */ 211 public static final String FILE_ERROR = "Log.MsgTemplate.FILE_ERROR"; 212 /*** 213 * warning msg template key 214 */ 215 public static final String WARNING = "Log.MsgTemplate.WARNING"; 216 217 }

This page was automatically generated by Maven