Log4J Flashcards

1
Q

Log4J

A

A logging tool that helps us keep track of whats going on inside of code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What outputs can Log4J send to?

A

Database
File
Console
UniSys Log

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Levels=> What to log

A
(Worst)
Fatal
Error
Warn
Info
Debug
Trace
(Least Bad)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Appenders

A

Where to log

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Log4J Features

A
Thread safe
Multiple appenders support
Customization
High speed optimization
Various logging levels
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Advantages

A

quick debugging
easy maintenance
structured storage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Disadvantages

A

slows down app

scrolling blindness

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Core Objects: Loggers

A
register the class to the logger
gathers the logging info and are captured in the namespace hierarchy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Core Objects: Appenders

A

publishes the logging info to the respective destination(s)

lower level object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Core Objects: Layouts

A

styling the logging information for readability

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Support Core Objects: Level

A

Defines granularity and priority of bugging info

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Support Core Objects: Filter

A

Analyse and decide whether to keep the logged info
Appenders can use multiple filters
Tell the appender whether or not to print the logs to the respective destination

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Support Core Objects: Object Renderer

A

Provides the string representation of the lagging information

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Support Core Objects: Log Manager

A

Reads configuration parameters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly