You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+103Lines changed: 103 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,109 @@ For a local socket connection, exclude the "host" and "port" portions::
83
83
e = create_engine("ibm_db_sa://user:pass@/database")
84
84
```
85
85
86
+
## Logging in ibm_db_sa
87
+
The `ibm_db_sa` module provides built-in logging support to help debug SQLAlchemy dialect operations, connection handling, reflection, and SQL execution.
88
+
Logging can be enabled using the `ibmdbsa_log` query parameter in the database connection URL.
89
+
90
+
### Logging Configuration
91
+
Use the `ibmdbsa_log` parameter at the end of the connection URL.
92
+
Possible values:
93
+
```
94
+
True -> Enable logging to the console
95
+
"filename" -> Enable logging to a file (file is overwritten on each run)
96
+
False -> Disable logging
97
+
```
98
+
99
+
---
100
+
### Examples
101
+
#### 1. Enable Logging to a File (Current Directory)
102
+
Logs will be written to a file in the current working directory.
0 commit comments