[unixODBC-dev] Timestamp in the unixODBC log file

anand.vasudevan at wipro.com anand.vasudevan at wipro.com
Mon May 15 08:30:53 BST 2006


We are using unixODBC-2.2.7 which is available as a Solaris package on
the unixODBC site.
Is there a place where I can get the source code of this version to make
the change mentioned by you?

Regards
Anand

-----Original Message-----
From: unixodbc-dev-bounces at easysoft.com
[mailto:unixodbc-dev-bounces at easysoft.com] On Behalf Of Nick Gorham
Sent: Thursday, May 11, 2006 5:46 PM
To: Development issues and topics for unixODBC
Subject: Re: [unixODBC-dev] Timestamp in the unixODBC log file

anand.vasudevan at wipro.com wrote:
> Hi all,
>
> I have the following entry in my odbcinst.ini file: -
>
> [ODBC]
> Trace           = Yes
> TraceFile               = /tmp/sql.log
> ForceTrace              = Yes
> Pooling         = Yes
>
>
> I get the following log messages in the /tmp/sql.log file: -
>
> [ODBC][23545][SQLAllocHandle.c][463]
>                 Exit:[SQL_SUCCESS]
>                         Output Handle = 11c340
> [ODBC][23545][SQLSetConnectAttr.c][318]
>                 Entry:
>                         Connection = 11c340
>                         Attribute = SQL_ATTR_LOGIN_TIMEOUT
>                         Value = 5
>                         StrLen = 0
> [ODBC][23545][SQLSetConnectAttr.c][500]
>                 Exit:[SQL_SUCCESS]
> [ODBC][23545][SQLConnect.c][3549]
>                 Entry:
>                         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
> statement?

Just add it to the dm_log_write* functions in DriverManager/__info.c

--
Nick Gorham
Easysoft Limited
_______________________________________________
unixODBC-dev mailing list
unixODBC-dev at easysoft.com
http://mail.easysoft.com/mailman/listinfo/unixodbc-dev


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.

www.wipro.com




More information about the unixODBC-dev mailing list