niota

fascinating. logical.

User Tools

Site Tools


niota-docs:niota_grid_config_logging

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
niota-docs:niota_grid_config_logging [2021/11/28 13:09]
admin
niota-docs:niota_grid_config_logging [2025/07/17 14:11] (current)
Line 1: Line 1:
-===== configure grid logging =====+===== configure grid edit logging =====
  
-With this feature you can configure logging for an **existing** database connection.+With this feature you can configure logging for an **existing** database connection. Grid edit logging means that all SQL commands that changes data are logged.
  
-  * Navigate to the menu item 
  
-**generell settings->​logging**+**[[niota_grid_config_sitemap|navigate to the menu item]]**
  
- +  ​add/edit a record ​-> enter valid values for fields listed below
-  ​Add/edit a record+
-  * enter valid values for fields listed below+
  
 === DB connection to be logged === === DB connection to be logged ===
-Select a database connection from the drop down list.+Database connection for which updates in tables, triggered by niota web editor, will be logged. ​Select a database connection from the drop down list.
  
-=== log to file === +=== Log to file === 
-Switch checkbox on if you want the logs to be written ​to the file entered in ''​Logfile''​.+Switch checkbox on if you want the logs to be written ​into the file entered in ''​Logfile''​.
  
 === Log to DB table === === Log to DB table ===
-Switch checkbox on if you want the logs to be written ​in a database table. The structure of the database table must be like .....+Switch checkbox on if you want the logs to be written ​into a database table. The structure of the database table must be like [[niota_metadb_table_etx_useraction|user action table]].
  
 === Logfile === === Logfile ===
-Filename and file extions ​of the file where the log are written in case ''​Log to file''​ is on. The logfile is located on the niota server in directory ''​app\logs''​.+Filename and file extensions ​of the file where the logs are written in case ''​Log to file''​ is on. The logfile is located on the niota server in directory ''​app\logs''​.
  
-=== callable ​object for logging === +=== Callable ​object for logging === 
-Choose a valid callable object (stored procedure) that should handle ​the logging finally. This can be a delivered system log procedure or your own procedure in case you do not want to log to N-MDDB.+Choose a valid callable object (stored procedure) that handles ​the logging finally. This can be a delivered system log procedure or your own procedure in case you do not want to log to N-MDDB.
  
  
-{{:niota-docs:​grid_config_logging_01.png|}}+=== Logging of callable objects === 
 +When logging a callable object call the logging connection is set according to the followings: 
 +  * When a callable object is bound to a catalog instance and called from the grid-custom-menu then the log-connection of the catalog instance is used. 
 +  * When a callable object is called from the transaction menu then the log-connection of the callable object connection is used. 
 +  * If a callable object content is placed in a file (web service or batch sql call) then only the file name is logged in the case of a successful call. 
 +  * If a callable object content is placed in a file (web service or batch sql call) and the call is unsuccessful then the final command / web service call is logged in the error log files.
  
 +=== System log files ===
 +There are log files which are not configurable. Those are created automatically during the running of the program.
 +  * debug.log => Stores debug info. Can be activated by using debug feature.
 +  * error.log => Stores error messages generated during the running of the server side conde - PHP error messages.
 +  * error_sql.log => Stores sql statements which could not be executed. Also stores the database server response.
 +  * error_ws.log => Stores xml contents which could not be executed. Also stores the server response.
  
- +---- 
 +{{:​niota-docs:​m_01_020_logging_01.png?​nolink|}} 
 +----
  
niota-docs/niota_grid_config_logging.1638101355.txt.gz · Last modified: 2025/07/17 14:11 (external edit)