107: IS
108: BEGIN
109: --
110: --dbms_output.put_line(' LOG: ' || mssg );
111: FND_FILE.put(which, mssg);
112: FND_FILE.NEW_LINE(which, 1);
113: --
114: -- If the output message and if debug flag is set then also write
115: -- to the log file
108: BEGIN
109: --
110: --dbms_output.put_line(' LOG: ' || mssg );
111: FND_FILE.put(which, mssg);
112: FND_FILE.NEW_LINE(which, 1);
113: --
114: -- If the output message and if debug flag is set then also write
115: -- to the log file
116: --
115: -- to the log file
116: --
117: IF Which = 2 THEN
118: IF G_Debug THEN
119: FND_FILE.put(1, mssg);
120: FND_FILE.NEW_LINE(1, 1);
121: END IF;
122: END IF;
123: --
116: --
117: IF Which = 2 THEN
118: IF G_Debug THEN
119: FND_FILE.put(1, mssg);
120: FND_FILE.NEW_LINE(1, 1);
121: END IF;
122: END IF;
123: --
124: END Write_Log;