Hi all

I tried to use that command in ivy but nothing happen in console view. So does anyone know reason why it does not work and can we make it work?

Thanks

asked 23.05.2017 at 05:01

trungdv's gravatar image

trungdv
(suspended)
accept rate: 52%


The ivy way is to use ivy.log API in scriptlets or Ivy.log().info("hey there") in java code. Logs written over this API will are prominently listed in the Runtime Log View and trough filtering the exlporation of them is much more convenient than parsing trough a raw console log...

link

answered 29.03.2018 at 02:49

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958
accept rate: 70%

you can use this:

FileOutputStream fos = null;
    try {
        fos = new FileOutputStream("D:/logCloner.txt");
    } catch(FileNotFoundException e) {
        // TODO Auto-generated catch block
        ivy.log.error(e);
    }

     // Create new print stream for file.
     PrintStream ps = new PrintStream(fos);

     // Set file print stream.
     System.setOut(ps);
     System.out.println("Print in the file !!");

I tested in my Ivy desinger - worked alt text

link

answered 20.03.2018 at 09:04

khanh11166's gravatar image

khanh11166
(suspended)
accept rate: 0%

edited 20.03.2018 at 09:04

Thanks @khanh11166 It's a alternative solution, but i will be more happy if i can log directly in console like normal java project. It's more convenient

(23.03.2018 at 00:50) trungdv trungdv's gravatar image

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×9

Asked: 23.05.2017 at 05:01

Seen: 3,014 times

Last updated: 29.03.2018 at 02:49