on 2011 Aug 18 12:46 PM
Does anyone know how to set the DBConsole to use a mono-spaced font?
Request clarification before answering.
For the record, the font used by dbconsole "should" be pulled from the operating systems Appearance settings (advanced). This is what allows the SQL Anywhere utilities to change to the theme that is applied to the machine that you are running it on.
So if you need a larger font overall, you should be able to change it there and that change should be rendered in the utility the next time you run it.
Or maybe I should say..... This is how it "SHOULD" work. I went back and forth with the SQL Anywhere development team when the Java version of Sybase Central was relatively new because it didn't follow Windows standards that had been laid out for Windows applications.
Let me know if that works for you. I'm going to try and check my machine later on tonight.
Jeff Gibson
Intercept Solutions - Sybase SQL Anywhere OEM Partner
Nashville, TN
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Obviously this is not a direct answer to your question, but you could either output the log to a text file with the startup switches on the DB or alternatively write the messages that would go into the log to a text file bypassing the log altogether using string variables and unload selects. You would have much more control over formatting at that point, but you would also have external files to deal with.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
These are the startup switches to write the log to a file.
Quoting Breck's comment from this question
-o filespec1.txt -oe filespec2.txt -os 1M is a good combination for production. The -os 1M keeps the file size manageable for browsing with Wordpad etcetera. For a service the filespecs probably have to have the full path.
Writing just your messages to an alternate file would be coded by you for each thing that you wanted to track using string variables and then unload select.
There is no way to change the font used by the SQL Anywhere Console (dbconsole).
Can you tell us which panel you wanted to view with a monospaced font? (Connections, Properties, and/or Messages)? Is the default font not readable?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I may have named dbconsole incorrectly there is only one panel -- it's from the restore of the lightening sysicon for the database engine. I am writing log (debug) messages out using tabs (spacing), etc to align data and the variable font face makes the spacing inconsistent with a monospaced font in an editor when accessing the data from the console log file later. PS I have also had success writing them to the console log file using the parameter indicated.
The following is the code I used (in a self contained script file)
MESSAGE '>>>> ConsoleLogFileON.sql' TYPE INFO TO CONSOLE; -- -- Establish ConsoleLogFile, if necessary -- //CREATE VARIABLE l_consolelogtext char(128) = 'ConsoleLogFile'; //CREATE VARIABLE l_consolelogfile char(128) = ''; CREATE VARIABLE l_consolelogtext char(128); CREATE VARIABLE l_consolelogfile char(128);
SET l_consolelogtext = 'ConsoleLogFile'; SET l_consolelogfile = '';
SELECT PROPERTY ('ConsoleLogFile') INTO l_consolelogfile;
MESSAGE String ('>>9> ConsoleLogFile ', l_consolelogfile) TYPE INFO TO CONSOLE DEBUG ONLY;
IF l_consolelogfile = '' THEN SET l_consolelogfile = 'Y:message.clf'; CALL sa_server_option (l_consolelogtext, l_consolelogfile); END IF;
DROP VARIABLE l_consolelogtext; DROP VARIABLE l_consolelogfile;
User | Count |
---|---|
33 | |
22 | |
17 | |
8 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.