cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
avizner
Level 2

How to write to installation log from a custom code

hi
I'm trying to write to the installation log from a custom code using the InstallerProxy.getLogOutput api unfortunately unsuccessfully.
my code:

StringBuilder builder = new StringBuilder(sdf.format(new Date())).append(" - ").append(str);

try
{
ip.getLogOutput().writeBytes(builder.toString());
}
catch (IOException e)
{
e.printStackTrace();
}

any ideas why?
Labels (1)
0 Kudos
(1) Reply
bitkahuna
Level 3

javadoc says it only works during install phase, not pre or post install actions, maybe that's the issue?
0 Kudos