@@ -48,7 +48,7 @@ fhmedia:
48
48
- link : " https://www.hsbi.de/medienportal/m/a91451640b7833daed3f6fb212fff9490ef6b8885783cc0297603a418055f1a8c2ff7b51f3cb9fb2c4344132eb95bef5af55201f8958f24d767dbd075120bce2"
49
49
name : " VL Logging"
50
50
attachments :
51
- - link : " https://github.com/Programmiermethoden-CampusMinden/Prog2-Lecture/blob/_pdf/lecture/java-classic /logging.pdf"
51
+ - link : " https://github.com/Programmiermethoden-CampusMinden/Prog2-Lecture/blob/_pdf/lecture/quality /logging.pdf"
52
52
name : " PDF-Version"
53
53
challenges : |
54
54
**Logger-Konfiguration**
@@ -164,7 +164,7 @@ Zusätzlich gibt es noch Filter, mit denen man Nachrichten (zusätzlich zum
164
164
Log-Level) nach weiteren Kriterien filtern kann.
165
165
:::
166
166
167
- [ Konsole: logging.LoggingDemo] {.ex href="https://github.com/Programmiermethoden-CampusMinden/Prog2-Lecture/blob/master/lecture/java-classic /src/logging/LoggingDemo.java"}
167
+ [ Konsole: logging.LoggingDemo] {.ex href="https://github.com/Programmiermethoden-CampusMinden/Prog2-Lecture/blob/master/lecture/quality /src/logging/LoggingDemo.java"}
168
168
169
169
170
170
# Erzeugen neuer Logger
@@ -234,7 +234,7 @@ public void log(Level level, String msg);
234
234
* Pr üfung mit `public boolean isLoggable(Level )`
235
235
* Setzen mit `public void setLevel(Level )`
236
236
237
- [Konsole : logging. LoggingLevel ]{. ex href= " https://github.com/Programmiermethoden-CampusMinden/Prog2-Lecture/blob/master/lecture/java-classic /src/logging/LoggingLevel.java" }
237
+ [Konsole : logging. LoggingLevel ]{. ex href= " https://github.com/Programmiermethoden-CampusMinden/Prog2-Lecture/blob/master/lecture/quality /src/logging/LoggingLevel.java" }
238
238
239
239
::: notes
240
240
= > Warum wird im Beispiel nach `log. setLevel(Level . ALL );` trotzdem nur
@@ -266,7 +266,7 @@ ab `INFO` geloggt? Wer erzeugt eigentlich die Ausgaben?!
266
266
* Handler nutzen zur Formatierung der Ausgabe einen `Formatter `
267
267
* Standard - Formatter : `SimpleFormatter ` und `XMLFormatter `
268
268
269
- [Konsole : logging. LoggingHandler ]{. ex href= " https://github.com/Programmiermethoden-CampusMinden/Prog2-Lecture/blob/master/lecture/java-classic /src/logging/LoggingHandler.java" }
269
+ [Konsole : logging. LoggingHandler ]{. ex href= " https://github.com/Programmiermethoden-CampusMinden/Prog2-Lecture/blob/master/lecture/quality /src/logging/LoggingHandler.java" }
270
270
271
271
::: notes
272
272
= > Warum wird im Beispiel nach dem Auskommentieren von
@@ -290,7 +290,7 @@ angezeigt (ab `INFO` aufwärts)?!
290
290
* Abschalten mit `Logger #setUseParentHandlers(false );`
291
291
* Diese leiten [an ihre Handler sowie]{. notes} an ihren Eltern - Logger weiter (unabhängig von Log - Level ! )
292
292
293
- [Konsole : logging. LoggingParent ; Tafel : Skizze Logger - Baum ]{. ex href= " https://github.com/Programmiermethoden-CampusMinden/Prog2-Lecture/blob/master/lecture/java-classic /src/logging/LoggingParent.java" }
293
+ [Konsole : logging. LoggingParent ; Tafel : Skizze Logger - Baum ]{. ex href= " https://github.com/Programmiermethoden-CampusMinden/Prog2-Lecture/blob/master/lecture/quality /src/logging/LoggingParent.java" }
294
294
295
295
296
296
# Wrap - Up
0 commit comments