Skip to content

Commit 5f6a37c

Browse files
committed
Merge pull request #228 from PaulaRudy/loggingFeature
Logging feature
2 parents 9a34cfd + 931daab commit 5f6a37c

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,3 @@ bower_components
8787
#Generated files should be ignored as the are regenerated as a build step
8888
*/src/generated
8989
/bin/
90-
91-
#Logging output file
92-
/ui/GRIP.log

core/src/main/java/edu/wpi/grip/core/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static void main(String[] args) throws Exception {
2525
Handler fileHandler = null;//This will be our handler for the global logger
2626

2727
try {
28-
fileHandler = new FileHandler("./GRIP.log");//Log to the file "GRIPlogger.log"
28+
fileHandler = new FileHandler("%h/GRIP.log");//Log to the file "GRIPlogger.log"
2929

3030
globalLogger.addHandler(fileHandler);//Add the handler to the global logger
3131

ui/src/main/java/edu/wpi/grip/ui/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void start(Stage stage) {
3535
Handler fileHandler = null;//This will be our handler for the global logger
3636

3737
try {
38-
fileHandler = new FileHandler("./GRIP.log");//Log to the file "GRIPlogger.log"
38+
fileHandler = new FileHandler("%h/GRIP.log");//Log to the file "GRIP.log"
3939

4040
globalLogger.addHandler(fileHandler);//Add the handler to the global logger
4141

0 commit comments

Comments
 (0)