MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / writeServerLog

Function writeServerLog

runtime/src/js/misc.js:113–120  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

111
112// This function is used to write the data into the log file
113export const writeServerLog = (data) => {
114 data = data + '\n';
115 if (fs.existsSync(serverLogFile)) {
116 fs.writeFileSync(serverLogFile, data, {flag: 'a+'});
117 } else {
118 fs.writeFileSync(serverLogFile, data, {flag: 'w'});
119 }
120};
121
122// This function is used to remove the log file
123const removeLogFile = () => {

Callers 1

setupDownloaderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected