"log file oracle" Code Answer's
You're definitely familiar with the best coding language Whatever that developers use to develop their projects and they get all their queries like "log file oracle" answered properly. Developers are finding an appropriate answer about log file oracle related to the Whatever coding language. By visiting this online portal developers get answers concerning Whatever codes question like log file oracle. Enter your desired code related query in the search bar and get every piece of information about Whatever code related question on log file oracle.
log file oracle
CREATE OR REPLACE
PROCEDURE "WRITELOG" (LOGLEVEL IN VARCHAR2, LOGCONTEXT IN VARCHAR2, LOGMESSAGE IN VARCHAR2)
AUTHID CURRENT_USER
AS
F1 UTL_FILE.FILE_TYPE;
PRAGMA AUTONOMOUS_TRANSACTION;
LOG_DIR VARCHAR2;
LOG_FILENAME VARCHAR2;
BEGIN
LOG_DIR := 'MYLOG_DIR';
LOG_FILENAME := 'mylog';
F1 := UTL_FILE.FOPEN(LOG_DIR, TO_CHAR(SYSDATE,'YYYY-MM-DD') || '_' || LOG_FILENAME ||'.log','a');
UTL_FILE.PUT_LINE(F1, TO_CHAR(SYSDATE,'DD-MM-YYYY HH:MI:SS AM') || ' - [' || LOGLEVEL || '] ' || LOGCONTEXT || ': ' || LOGMESSAGE);
UTL_FILE.FCLOSE(F1);
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('ERROR: ' || TO_CHAR(SQLCODE) || SQLERRM);
IF UTL_FILE.IS_OPEN(F1) THEN
UTL_FILE.FCLOSE(F1);
END IF;
END;
Source: www.mytroubleshooting.com
All those coders who are working on the Whatever based application and are stuck on log file oracle can get a collection of related answers to their query. Programmers need to enter their query on log file oracle related to Whatever code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about log file oracle for the programmers working on Whatever code while coding their module. Coders are also allowed to rectify already present answers of log file oracle while working on the Whatever language code. Developers can add up suggestions if they deem fit any other answer relating to "log file oracle". Visit this developer's friendly online web community, CodeProZone, and get your queries like log file oracle resolved professionally and stay updated to the latest Whatever updates.