Automatic save log windows
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007
01:41 AM
08-02-2007
01:41 AM
Automatic save log windows
It would be very nice when a log line in a log windows
also be written to a log file.
When debugging or testing a lot, the log window will erase lines
when there are more than n line's.
Raymond
also be written to a log file.
When debugging or testing a lot, the log window will erase lines
when there are more than n line's.
Raymond
9 REPLIES 9
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007
02:17 AM
08-02-2007
02:17 AM
Hi Raymond,
this is actually possible currently by modifying the internal log4j configuration.. if you tell me which log you need I'll show you an example..
(obviously this should be improved to be configured directly in the UI in a future version)
regards!
/Ole
eviware.com
this is actually possible currently by modifying the internal log4j configuration.. if you tell me which log you need I'll show you an example..
(obviously this should be improved to be configured directly in the UI in a future version)
regards!
/Ole
eviware.com
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007
03:26 AM
08-02-2007
03:26 AM
Ole,
I want to export the groovy log and some other log windows that
i self created.
It would be very nice when it can be configured directly in the UI by the future.
greetings,
raymond
I want to export the groovy log and some other log windows that
i self created.
It would be very nice when it can be configured directly in the UI by the future.
greetings,
raymond
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007
06:13 AM
08-02-2007
06:13 AM
Hi,
ok.. I've attached a modified soapui-log4j.xml that you should save in your soapui-pro\bin directory, it adds the following to the standard configuration:
ie it defines a file-appender which writes to a "soapui-groovy.log" file and associates it with the "groovy.log" category..
If you want to add appenders to your own logs, just create a category named as yours and appropriate appenders..
Hope this helps!
regards,
/Ole
eviware.com
ok.. I've attached a modified soapui-log4j.xml that you should save in your soapui-pro\bin directory, it adds the following to the standard configuration:
<logger name="groovy.log">
<appender-ref ref="GroovyFile"/>
</logger>
<appender name="GroovyFile" class="org.apache.log4j.FileAppender">
<errorHandler class="org.apache.log4j.helpers.OnlyOnceErrorHandler"/>
<param name="File" value="soapui-groovy.log"/>
<param name="Threshold" value="DEBUG"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p [%c{1}] %m%n"/>
</layout>
</appender>
ie it defines a file-appender which writes to a "soapui-groovy.log" file and associates it with the "groovy.log" category..
If you want to add appenders to your own logs, just create a category named as yours and appropriate appenders..
Hope this helps!
regards,
/Ole
eviware.com
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007
06:32 AM
08-02-2007
06:32 AM
Thanks Ole,
I shall test this feature tomorrow.
greetings,
Raymond
I shall test this feature tomorrow.
greetings,
Raymond
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007
06:39 AM
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007
02:09 AM
08-03-2007
02:09 AM
It works almost fine.
The file is OK
But i have 1 question.
In the log file is see
007-08-03 10:47:18,063 INFO [category] testing..
How can i fill the [category] or skip this item.
I have attached the script, log and log4j.xml file.
Can you tell me what i do wrong, or forgot to do?
regards,
Raymond
The file is OK
But i have 1 question.
In the log file is see
007-08-03 10:47:18,063 INFO [category] testing..
How can i fill the [category] or skip this item.
I have attached the script, log and log4j.xml file.
Can you tell me what i do wrong, or forgot to do?
regards,
Raymond
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007
02:14 AM
08-03-2007
02:14 AM
Hi Raymond,
the format is controlled by the ConversionPattern layout parameter in the config file.. if you change it to
the format is controlled by the ConversionPattern layout parameter in the config file.. if you change it to
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007
02:21 AM
08-03-2007
02:21 AM
Ole,
Are the options for the ConversionPattern defined (described) somewhere ?
Raymond
Are the options for the ConversionPattern defined (described) somewhere ?
Raymond
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007
02:26 AM
08-03-2007
02:26 AM
Hi Raymond,
yes.. have a look at
http://logging.apache.org/log4j/docs/ap ... ayout.html
regards!
/Ole
eviware.com
yes.. have a look at
http://logging.apache.org/log4j/docs/ap ... ayout.html
regards!
/Ole
eviware.com
