From fd1db35604dc16d87ccedd542f4abc9778311879 Mon Sep 17 00:00:00 2001 From: dmarakom6 Date: Thu, 25 Mar 2021 10:41:56 +0200 Subject: [PATCH] logs --- util/failed/disfailed.cpp | 22 ++++++++++++++++++++++ util/failed/enfailed.cpp | 22 ++++++++++++++++++++++ util/failed/ifailed.cpp | 22 ++++++++++++++++++++++ util/failed/sdfailed.cpp | 23 +++++++++++++++++++++++ util/failed/ufailed.cpp | 22 ++++++++++++++++++++++ util/failed/uninfailed.cpp | 22 ++++++++++++++++++++++ 6 files changed, 133 insertions(+) create mode 100644 util/failed/disfailed.cpp create mode 100644 util/failed/enfailed.cpp create mode 100644 util/failed/ifailed.cpp create mode 100644 util/failed/sdfailed.cpp create mode 100644 util/failed/ufailed.cpp create mode 100644 util/failed/uninfailed.cpp diff --git a/util/failed/disfailed.cpp b/util/failed/disfailed.cpp new file mode 100644 index 0000000..7651830 --- /dev/null +++ b/util/failed/disfailed.cpp @@ -0,0 +1,22 @@ +/* +shellnotes - disfailed.cpp +(C) Dimitris Marakomihelakis +Released under the "All rights reserved" category. See the RIGHTS.txt file +in /docs/github/ for its full text. +*/ + +#include +#include +#include + +using namespace std; + +int main() +{ + time_t now = time(0); + char* dt = ctime(&now); + std::ofstream outfile ("../../logs/disfailed.txt", std::ios_base::app); + outfile << "DISABLING FAILED IN " << dt << "\n"; + outfile.close(); + return 0; +} \ No newline at end of file diff --git a/util/failed/enfailed.cpp b/util/failed/enfailed.cpp new file mode 100644 index 0000000..738c8de --- /dev/null +++ b/util/failed/enfailed.cpp @@ -0,0 +1,22 @@ +/* +shellnotes - enfailed.cpp +(C) Dimitris Marakomihelakis +Released under the "All rights reserved" category. See the RIGHTS.txt file +in /docs/github/ for its full text. +*/ + +#include +#include +#include + +using namespace std; + +int main() +{ + time_t now = time(0); + char* dt = ctime(&now); + std::ofstream outfile ("../../logs/enfailed.txt", std::ios_base::app); + outfile << "ENABLING FAILED IN " << dt << "\n"; + outfile.close(); + return 0; +} \ No newline at end of file diff --git a/util/failed/ifailed.cpp b/util/failed/ifailed.cpp new file mode 100644 index 0000000..2f8e7d4 --- /dev/null +++ b/util/failed/ifailed.cpp @@ -0,0 +1,22 @@ +/* +shellnotes - ifailed.cpp +(C) Dimitris Marakomihelakis +Released under the "All rights reserved" category. See the RIGHTS.txt file +in /docs/github/ for its full text. +*/ + +#include +#include +#include + +using namespace std; + +int main() +{ + time_t now = time(0); + char* dt = ctime(&now); + std::ofstream outfile ("../../logs/ifailed.txt", std::ios_base::app); + outfile << "INSTALLATION FAILED IN " << dt << "\n"; + outfile.close(); + return 0; +} \ No newline at end of file diff --git a/util/failed/sdfailed.cpp b/util/failed/sdfailed.cpp new file mode 100644 index 0000000..2a07da3 --- /dev/null +++ b/util/failed/sdfailed.cpp @@ -0,0 +1,23 @@ +/* +shellnotes - sdfailed.cpp +(C) Dimitris Marakomihelakis +Released under the "All rights reserved" category. See the RIGHTS.txt file +in /docs/github/ for its full text. +*/ + +#include +#include +#include + +using namespace std; + +int main() +{ + time_t now = time(0); + char* dt = ctime(&now); + ofstream sdfailed; + std::ofstream outfile ("../../logs/sdfailed.txt", std::ios_base::app); + outfile << "INVALID PATH FOR DEFAULT EDITOR/FOLDER IN " << dt << "\n"; + outfile.close(); + return 0; +} \ No newline at end of file diff --git a/util/failed/ufailed.cpp b/util/failed/ufailed.cpp new file mode 100644 index 0000000..4f181dc --- /dev/null +++ b/util/failed/ufailed.cpp @@ -0,0 +1,22 @@ +/* +shellnotes - ufailed.cpp +(C) Dimitris Marakomihelakis +Released under the "All rights reserved" category. See the RIGHTS.txt file +in /docs/github/ for its full text. +*/ + +#include +#include +#include + +using namespace std; + +int main() +{ + time_t now = time(0); + char* dt = ctime(&now); + std::ofstream outfile ("../../logs/ufailed.txt", std::ios_base::app); + outfile << "UPDATE FAILED IN " << dt << "\n"; + outfile.close(); + return 0; +} \ No newline at end of file diff --git a/util/failed/uninfailed.cpp b/util/failed/uninfailed.cpp new file mode 100644 index 0000000..557148b --- /dev/null +++ b/util/failed/uninfailed.cpp @@ -0,0 +1,22 @@ +/* +shellnotes - uninfailed.cpp +(C) Dimitris Marakomihelakis +Released under the "All rights reserved" category. See the RIGHTS.txt file +in /docs/github/ for its full text. +*/ + +#include +#include +#include + +using namespace std; + +int main() +{ + time_t now = time(0); + char* dt = ctime(&now); + std::ofstream outfile ("../../logs/uninfailed.txt", std::ios_base::app); + outfile << "UNINSTALLATION FAILED IN " << dt << "\n"; + outfile.close(); + return 0; +} \ No newline at end of file