Changeset 32757 for other-projects
- Timestamp:
- 2019-02-07T21:32:29+13:00 (5 years ago)
- Location:
- other-projects/the-macronizer/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/the-macronizer/trunk/build.xml
r32755 r32757 140 140 source ${scripts.dir}/MySQL_Code.sql 141 141 142 3. Edit ${b uild.dir.exp}/WEB-INF/classes/mysql.properties to set the db password.142 3. Edit ${basedir}/mysql.properties to set the db password. 143 143 - If you set up a different username for the mysql db, set that in mysql.properties too. 144 144 - If nothing is set, MacronLogFileProcessor will assume the username is root. -
other-projects/the-macronizer/trunk/src/java/util/MacroniserLogFileProcessor.java
r32749 r32757 13 13 //import MySQLAccess.Tuple; 14 14 15 16 15 public class MacroniserLogFileProcessor { 17 16 static boolean debug = false; 17 18 18 /** ARGUMENTS: 19 19 * /home/wjkw1/RESEARCH_2018-19/bash_test/loggingtest.log … … 21 21 */ 22 22 23 static final String directInputRegexp = "INFO : \\[\\d\\d\\d\\d\\-\\d\\d\\-\\d\\d \\d\\d:\\d\\d:\\d\\d\\] DirectInput.doPost\\(\\) ";24 static final String fileUploadRegexp = "ERROR: \\[\\d\\d\\d\\d\\-\\d\\d\\-\\d\\d \\d\\d:\\d\\d:\\d\\d\\] FileUpload.doPost\\(\\) ";23 static final String directInputRegexp = "INFO : \\[\\d\\d\\d\\d\\-\\d\\d\\-\\d\\d \\d\\d:\\d\\d:\\d\\d\\] DirectInput.doPost\\(\\)\\s*"; 24 static final String fileUploadRegexp = "ERROR: \\[\\d\\d\\d\\d\\-\\d\\d\\-\\d\\d \\d\\d:\\d\\d:\\d\\d\\] FileUpload.doPost\\(\\)\\s*"; 25 25 26 26 static ArrayList<MacroniserLogFileData> extractedEntries; … … 33 33 34 34 35 if(debug) { 35 if(debug) { 36 36 int count = 0; 37 37 for (MacroniserLogFileData entry : extractedEntries) { … … 130 130 private static void extractFromLogFile(String filename) { 131 131 132 ///System.out.println("** In extractFromLogFile: " + filename); 133 132 134 BufferedReader br = null; 133 135 try { … … 140 142 141 143 while ((line = br.readLine())!= null){ 144 ///System.out.println("@@@ Read line: " + line); 145 142 146 if(!firstTagFound){ 143 147 //check for tag … … 145 149 //add to list if the first match 146 150 if(firstTagFound) { 151 ///System.out.println("Found first tag: " + line); 147 152 extractedSB.append(line); 148 153 continue; … … 152 157 if(doesLineMatch(line)){ 153 158 //turn the string builder text into MacroniserLogFileData object 159 ///System.out.println("LINE MATCHED: " + line); 160 154 161 MacroniserLogFileData entry = transformLogFileStringToObject(extractedSB.toString()); 155 162 //perform operations if not null, else error
Note:
See TracChangeset
for help on using the changeset viewer.