Package io.github.jbastgen.stemma.app.ai
Class AiLog
java.lang.Object
io.github.jbastgen.stemma.app.ai.AiLog
The log of everything that goes to an AI service: a file of its own (
stemma-ai-YYYY-MM-DD.log in the log folder,
see logback.xml), apart from the application log. For every request it records the settings used, the system
prompt and the prompt as they are sent (after secrets were masked and the text was cut), what is put on the wire (the address,
the headers with keys and tokens hidden, the body; or the command line, the folder and the exit code of a local tool),
and the answer or the error. The lines of one request carry the same number, [#7].-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the logger that writes to the AI log file. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanenabled()Whether lines are written now.static voidsetEnabled(boolean on) Switches the AI log on or off, at once.
-
Field Details
-
LOGGER_NAME
The name of the logger that writes to the AI log file.- See Also:
-
-
Method Details
-
setEnabled
public static void setEnabled(boolean on) Switches the AI log on or off, at once. Does nothing if Logback is not the logger. -
enabled
public static boolean enabled()Whether lines are written now.
-