Package lib
Interface Logger
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional Interface that represents the Logger of the library. The target method is
log(String)
which is used to define how to log a String.
The other default methods used the target one to log the classes that the library construct during a specific analysis.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Enum that represents the identifiers used to understand which object is logged. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
Target method of the Functional Interface.default void
Log a json representing aFieldInfo
.default void
log
(MethodInfo method) Log a json representing aMethodInfo
.default void
log
(ClassReport classReport) Log a json representing aClassReport
.default void
log
(InterfaceReport interfaceReport) Log a json representing aInterfaceReport
.default void
log
(PackageReport packageReport) Log a json representing aPackageReport
.default void
log
(ProjectReport projectReport) Log a json representing aProjectReport
.default void
Log an error message.default void
logInterrupt
(String interruptMessage) Log an user interrupt message.
-
Field Details
-
STOP_ANALYZING_PROJECT
Message to sent to stop project analysis- See Also:
-
-
Method Details
-
log
Target method of the Functional Interface. It must be implemented to specify how to log a String, which represents the message that has to be logged.- Parameters:
message
- - the message to log
-
log
Log a json representing aMethodInfo
. It usesDTOs
andDTOParser
to create the json from the param. Before the json log also an identifier represented by a value of theLogger.CodeElementFound
to make understandable what type of object is logged.- Parameters:
method
- - the method to log
-
log
Log a json representing aFieldInfo
. It usesDTOs
andDTOParser
to create the json from the param. Before the json log also an identifier represented by a value of theLogger.CodeElementFound
to make understandable what type of object is logged.- Parameters:
field
- - the field to log
-
log
Log a json representing aInterfaceReport
. It usesDTOs
andDTOParser
to create the json from the param. Before the json log also an identifier represented by a value of theLogger.CodeElementFound
to make understandable what type of object is logged.- Parameters:
interfaceReport
- - the interface report to log
-
log
Log a json representing aClassReport
. It usesDTOs
andDTOParser
to create the json from the param. Before the json log also an identifier represented by a value of theLogger.CodeElementFound
to make understandable what type of object is logged.- Parameters:
classReport
- - the class report to log
-
log
Log a json representing aPackageReport
. It usesDTOs
andDTOParser
to create the json from the param. Before the json log also an identifier represented by a value of theLogger.CodeElementFound
to make understandable what type of object is logged.- Parameters:
packageReport
- - the package report to log
-
log
Log a json representing aProjectReport
. It usesDTOs
andDTOParser
to create the json from the param. Before the json log also an identifier represented by a value of theLogger.CodeElementFound
to make understandable what type of object is logged.- Parameters:
projectReport
- - the project report to log
-
logError
Log an error message.- Parameters:
errorMessage
- - the message to log
-
logInterrupt
Log an user interrupt message.- Parameters:
interruptMessage
- - the message to log
-