# Output Console Buffer problems

**URL:** <https://forum.inductiveautomation.com/t/output-console-buffer-problems/9610>\
**Category:** Ignition\
**Created:** [January 27, 2015, 9:58pm UTC](https://forum.inductiveautomation.com/t/output-console-buffer-problems/9610 "2015-01-27T21:58:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![axelf911](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@axelf911](https://forum.inductiveautomation.com/u/axelf911)\
**Post date:** [January 27, 2015, 9:58pm UTC](https://forum.inductiveautomation.com/t/output-console-buffer-problems/9610/1 "2015-01-27T21:58:39Z")

</div>

Hi All,

In Ignition designer, I am printing (using print statements) a lot of data to the output console when I run my program. I noticed that when I dump too much data, the data gets truncated so I end up missing some.

Where is the output console buffer configured? Is it possible to increase this buffer so that I can see more of it?

If there is no solution to this, is there a way to dump my data to a log file. I know that Gateway output gets dumped to wrapper.log. How about client scripts? Is there a way to dump client scripts to a file as well? Any help would be appreciated. Thanks.

axelf911

---

<div class="post-metadata">

**Author:** ![Daniel\_Webb](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@Daniel\_Webb](https://forum.inductiveautomation.com/u/Daniel_Webb)\
**Post date:** [January 26, 2024, 9:24pm UTC](https://forum.inductiveautomation.com/t/output-console-buffer-problems/9610/2 "2024-01-26T21:24:22Z")

</div>

I have been looking for this setting as well. I could have sworn I set it at some point in Ignition 7.9, but now I can't find it in any of the obvious places (ignition.conf file, Project Properties). I am using Ignition 8.1 now. I searched through many posts in the forum with the search phrase "output console" and this is the only one I found related to this problem.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [January 27, 2024, 3:26pm UTC](https://forum.inductiveautomation.com/t/output-console-buffer-problems/9610/3 "2024-01-27T15:26:05Z")

</div>

> [@axelf911](#):
>
> If there is no solution to this, is there a way to dump my data to a log file.

@Daniel_Webb

It's simple enough to script:  
**Example:**  
Create a library script called console scripts _(or whatever seems logical for the given design environment)_ **:**  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/f/df65aa44d05914c8e87866cc3baf5f98ad29b72f.png)

Create various console utility functions such as getting the console, getting the console text, creating a log file, and for clearing the console

```auto
from com.inductiveautomation.ignition.client.util.gui import OutputConsole
from java.awt.event import ActionEvent

# Recursive function searches the subcomponents of the console until the textpane is located,
# ...and then returns its text property
def getConsoleText(console):
	for component in console.components:
		if component. __class__. __name__ == 'JTextPane':
			return component.text
		else:
			textpaneText = getConsoleText(component)
			if textpaneText:
				return textpaneText

# Appends the given text to the end of a log file 
def logConsoleText(consoleText):
	# Define the path and file name of the log file
	filepath = 'C:/Users/testUser/Desktop/consoleLog.txt' #!!! Change this as needed
	
	# Append the console text to the end of the log file
	system.file.writeFile(filepath, consoleText, True)

# Programatically clears the console
def clearOutputConsole(console):
	# Clear the console in preparation for the next batch
	console.actionPerformed(ActionEvent(console, 0, 'clear'))

# Retrieves an instance of the output console
def getOutputConsole():
	return OutputConsole.getInstance()

```

Then call the utility scripts as needed whenever periodic console specific log dumps are needed:

```auto
# Get the output console from the designer
console = consoleScripts.getOutputConsole()

# Get the text from the console
consoleText = consoleScripts.getConsoleText(console)

# Dump the console text to a file
consoleScripts.logConsoleText(consoleText)

# Clear the console in preparation for the next batch
consoleScripts.clearOutputConsole(console)

```
