This repository has been archived by the owner on May 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into link-components
- Loading branch information
Showing
4 changed files
with
135 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,4 +59,4 @@ private static void createStyleJson(Props props) { | |
} | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.sevenmap; | ||
import java.io.IOException; | ||
//import java.util.logging.FileHandler; | ||
//import java.util.logging.Level; | ||
//import java.util.logging.Logger; | ||
//import java.util.logging.SimpleFormatter; | ||
//import java.io.PrintStream; | ||
//import java.io.File; | ||
import java.io.FileWriter; | ||
import java.io.PrintWriter; | ||
//import java.util.*; | ||
public class logger { | ||
|
||
//List<String> L = new ArrayList<String>(); | ||
public void log(String niveau ,String format ,Object ... args) throws IOException{ | ||
if (niveau == "File"){ | ||
FileWriter writer = new FileWriter("7map.txt"); | ||
PrintWriter printer = new PrintWriter(writer); | ||
printer.printf(format, args); | ||
printer.close(); | ||
writer.close(); | ||
}else if(niveau == "Console"){ | ||
System.out.printf(format, args); | ||
}else{ | ||
System.out.println("no output as you are in message free mode"); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters