This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Installanywhere role
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 12, 2008
09:37 AM
Logs
How to include your own logging statements in Installation log file ?
I am not able to print my sysouts in my installation log. How can I include them in my installation log file.
Can somebody tell me how should I change the path of Installer Debug outputs.Currently they are being made in /tmp folder.
I am not able to print my sysouts in my installation log. How can I include them in my installation log file.
Can somebody tell me how should I change the path of Installer Debug outputs.Currently they are being made in /tmp folder.
(8) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 12, 2008
11:59 AM
Perhaps search the documentation for examples using the CustomError class.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 02, 2008
04:32 AM
Yeh I did but tht only outputs the error or exception messages .What i want it to output my log statements in the log file.I also tried using Java logging but tht to didn't work:( .Can any body guide me for the same?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 02, 2008
11:43 AM
khayati wrote:
Yeh I did but tht only outputs the error or exception messages .What i want it to output my log statements in the log file.I also tried using Java logging but tht to didn't work:( .Can any body guide me for the same?
Sorry, I don't mean to hijack your thread but I am having exactly the same problem with log in IA 2008 VP1
1) I've been using ISMP 4.5 and 11.5 for a few years now and recently switched to IA 2008 VP1. I can call logEvent anywhere in ISMP to log messages, errors, etc. How do I do the same in IA 2008 ?
2) I've tried to use my own java logger but I don't see any of my messages in the log file.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 02, 2008
03:34 PM
well i guess we are sailing in the same boat.I too have been using ISMP 5.5 since so many yrs.Its recently tht i too have shifted to OA 2008 VP1.and its API's aren't mature like ISMP's and this have been facing many issues.
Hope we get some information regarding this problem.
Are you able to find any work arnd for the same? Or how r u using logging now?
Can you tell me where is this Logger class in IA API's
Hope we get some information regarding this problem.
Are you able to find any work arnd for the same? Or how r u using logging now?
Can you tell me where is this Logger class in IA API's
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 03, 2008
07:51 PM
I have no problem logging messages like this (where proxy is the InstallerProxy, CustomCodePanelProxy, etc...):
CustomError error = (CustomError)proxy.getService(CustomError.class);
error.setLogDescription("Logging Test");
error.appendMessage("This is a test message");
error.appendError("This is a test error", CustomError.ERROR);
error.log();
To get formatting right, I often append System.getProperty("line.separator") to the appendMessage statements. error.log() adds spaces for you, but usually in multiples and is hard to control without commit the messages to the log at exactly the right time.
CustomError error = (CustomError)proxy.getService(CustomError.class);
error.setLogDescription("Logging Test");
error.appendMessage("This is a test message");
error.appendError("This is a test error", CustomError.ERROR);
error.log();
To get formatting right, I often append System.getProperty("line.separator") to the appendMessage statements. error.log() adds spaces for you, but usually in multiples and is hard to control without commit the messages to the log at exactly the right time.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 04, 2008
08:51 AM
khayati
I also just found out IA keeps all the log in memory and only writes to a file when install completes. This logging behavior is not acceptable for me because if my install fails in the middle, then i won't get any log.
I am writing my own java logger using Logger, LogManager, FileHandler and Formatter. My logger writes to a file during install and it's almost working .
I also just found out IA keeps all the log in memory and only writes to a file when install completes. This logging behavior is not acceptable for me because if my install fails in the middle, then i won't get any log.
I am writing my own java logger using Logger, LogManager, FileHandler and Formatter. My logger writes to a file during install and it's almost working .
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 04, 2008
01:24 PM
HI
Thanks for the reply.Yeh i m aware of the installation logf tht IA creates and after comp installation but its hardly useful.I also tried Java logging the way u did but alas with no success.Can you tell me if thr is/are any settings required to create the log file.Can i add my own logs into the installatrion log file created by IA?
Thanks for the reply.Yeh i m aware of the installation logf tht IA creates and after comp installation but its hardly useful.I also tried Java logging the way u did but alas with no success.Can you tell me if thr is/are any settings required to create the log file.Can i add my own logs into the installatrion log file created by IA?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 05, 2008
05:16 AM
Installanywhere position in london - anyone looking for work?