- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Sep 13, 2010
06:47 AM
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?
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?
1 Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Oct 25, 2010
08:12 PM
javadoc says it only works during install phase, not pre or post install actions, maybe that's the issue?
