[unixODBC-dev] Timestamp in the unixODBC log file

anand.vasudevan at wipro.com anand.vasudevan at wipro.com
Thu May 11 12:44:23 BST 2006

Hi all,

I have the following entry in my odbcinst.ini file: -

Trace           = Yes
TraceFile               = /tmp/sql.log
ForceTrace              = Yes
Pooling         = Yes

I get the following log messages in the /tmp/sql.log file: -

                        Output Handle = 11c340
                        Connection = 11c340
                        Attribute = SQL_ATTR_LOGIN_TIMEOUT
                        Value = 5
                        StrLen = 0
                        Connection = 11c340
                        Server Name = [testdb][length = 14 (SQL_NTS)]
                        User Name = [usr][length = 6 (SQL_NTS)]
                        Authentication = [******][length = 6 (SQL_NTS)]
[ODBC][23545][SQLConnect.c][3758]Error: IM002

Is there a way I can get timestamp in this file for each line of log


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.


More information about the unixODBC-dev mailing list