Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get custom log entries into installation.log file?

Tags:

install4j

I wrote my first custom screnn yesterday and now I need some informations be looged. I took a look in the api but didn't found any class which looks like a logger class. Is there the possibility to log custom informations to the installation.log file or is it required to create a separatly log file with log4j?

Kind regards Hardie

like image 671
Hardie82 Avatar asked Dec 06 '25 17:12

Hardie82


1 Answers

Call one of

Util.logInfo(null, "My message");
Util.logError(null, "My error");

Or, if you have caucht a Throwable t

Util.log(t);

The class Util is in the com.install4.api package and is automatically imported in all scripts.

like image 50
Ingo Kegel Avatar answered Dec 09 '25 23:12

Ingo Kegel