groovy
  1. groovy
  2. GROOVY-3270

Configurable output area size + log to file option

    Details

    • Type: Improvement Improvement
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Groovy Console
    • Labels:
    • Number of attachments :
      0

      Description

      I am prototyping some code with GroovyConsole and I find it convenient to use "println" to the output area and copy/paste the result into another file. The output now is too big for the default size of the output, is there a way to increase it with an option?

      Fred

      Also from Jim White:

      In addition to making that setting configurable, a log-to-file option would be nice.

        Activity

        Hide
        Hamlet D'Arcy added a comment -

        what do you mean the output is too big? Does the output window limit the amount of characters printed at some point?

        Show
        Hamlet D'Arcy added a comment - what do you mean the output is too big? Does the output window limit the amount of characters printed at some point?
        Hide
        Robert Oschwald added a comment -

        The output buffer is quite small, so output is truncated. Only solution I know of is to log into a file. It would be great if you're able to set the output buffer size yourself.

        Show
        Robert Oschwald added a comment - The output buffer is quite small, so output is truncated. Only solution I know of is to log into a file. It would be great if you're able to set the output buffer size yourself.
        Hide
        dariusan added a comment -

        In the meanwhile as a workaround you could use:

        
         groovy.ui.Console.consoleControllers[0].@maxOutputChars=1000000
        
        
        Show
        dariusan added a comment - In the meanwhile as a workaround you could use: groovy.ui.Console.consoleControllers[0].@maxOutputChars=1000000
        Hide
        Fred Janon added a comment -

        >groovy.ui.Console.consoleControllers[0].@maxOutputChars=1000000

        Thanks for the trick!

        Show
        Fred Janon added a comment - >groovy.ui.Console.consoleControllers [0] .@maxOutputChars=1000000 Thanks for the trick!

          People

          • Assignee:
            Unassigned
            Reporter:
            Fred Janon
          • Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated: