Esempio n. 1
0
        public logging(string appName, string cash_register)
        {
            string filename = appName + "_" + cash_register + "_" + DateTime.Now.ToString("yyyyMMddHHmmssffff") + ".txt";
            fs = new FileStream(filename, FileMode.Append, FileAccess.Write, FileShare.Read);

            add_to_log_del zapis = new add_to_log_del(add_to_log_fnc);
            zapis.BeginInvoke(null, null);
        }
Esempio n. 2
0
        public logging(string prefix)
        {
            _prefix = prefix;
            fs = new FileStream(file_base + "\\log.txt", FileMode.Append, FileAccess.Write, FileShare.Read);

            add_to_log_del zapis = new add_to_log_del(add_to_log_fnc);
            zapis.BeginInvoke(null, null);
        }