logfile

qt program deployed on mac. config file not writing when standalone app launched, works when run from within qt creator

筅森魡賤 提交于 2019-12-13 03:59:06
问题 I have a program that I have developed for mac osx. When the program is run from within Qt creator, a log file and a config.cfg file are created in the myapp.app/Contents/MacOS folder, alongside the executable. This is the correct behaviour, the program needs these files. When I deploy the app to run standalone (by linking the required libraries using macdeploymentqt tool) the app launches and runs correctly however the log and config.cfg file do not get written to the myapp.app/Contents

Magento site keeps crashing inconsistently

£可爱£侵袭症+ 提交于 2019-12-12 04:58:02
问题 My magento site has started crashing. Recently while accessing the site mostly shows the following error message There has been an error processing your request Exception printing is disabled by default for security reasons. Error log record number: xxxxxxxxxxxx After refreshing the site several times the normal page is displayed again. The error report written to var/reports/<error log record numer> begins as follows: a:5:{i:0;s:82:"Category Products Index process is working now. Please try

Purge with PowerShell a big log file by deleting line by line and stopping it when my date comparison is true

巧了我就是萌 提交于 2019-12-11 15:22:46
问题 During these days i'm working on different scripts to delete lines into different log files. But i have still one file that i can't handle because the structure is bit more complex than the others files i have purged. To give you an idea i put here some example lines of that log file. [ 30-10-2017 16:38:07.62 | INFO | Some text [ 30-10-2017 16:38:11.07 | INFO | Some text [1];Erreur XXXX non-gérée : Some text. Merci de communiquer some text : - Some text again - Identifiant : XXXXXXXX-1789

How to remove deprecated warning in log-file of open-ACS, Project-Open

对着背影说爱祢 提交于 2019-12-11 12:45:57
问题 How to remove the warning in the log-file for using a deprecated proc within openACS, project-open? Part of the config: # Debug is turned on for demo servers. Please turn off for # performance critical production installations. set debug false #--------------------------------------------------------------------- # # Access log -- nslog # #--------------------------------------------------------------------- ns_section ns/server/${server}/module/nslog ns_param debug false ns_param dev false

Restructuring pyparsing parse results of multithreaded log file

空扰寡人 提交于 2019-12-11 11:23:43
问题 I have a log file of a multithreaded process which looks like this: <timestamp_in> <first_function_call_input> <thread:1> input_parameter_1: value input_parameter_2: value <timestamp_in> <another_function_call_input> <thread:2> input_parameters: values <timestamp_out> <another_function_call_output> <thread:2> output_parameters: values <timestamp_out> <first_function_call_output> <thread:1> output_parameters: values In my parse results variable I would like to have the input and output

Python write text to .tar.gz

守給你的承諾、 提交于 2019-12-10 17:17:10
问题 I look for a possibility to write a text file directly (OnTheFly) in a .tar.gz file with python. The best would be a solution like fobj = open (arg.file, "a") to append the text. I want to use this feature for long log files that you are not allowed to split. Thanks in advance 回答1: Yes, this is possible, but most likely not in the way you'd like to use it. .tar.gz is actually two things in one: gz or gzip is being used for compression, but this tool can only compress single files , so if you

Spawn multiple telnet with tcl and log the output separately

萝らか妹 提交于 2019-12-10 12:14:03
问题 I'm trying to telnet to multiple servers with spawn & i want to log the output of each in a separate files. If i use the spawn with 'logfile' then, it is logging into a same file. But i want to have it in different files. How to do this? 回答1: Expect's logging support (i.e., what the log_file command controls) doesn't let you set different logging destinations for different spawn IDs. This means that the simplest mechanism for doing what you want is to run each of the expect sessions in a

How to capture post method request in access log file?

我的梦境 提交于 2019-12-10 11:46:54
问题 I am enabling the access log in jboss Server by uncommenting the below code in server.xml file <Valve className="org.apache.catalina.valves.AccessLogValve" prefix="localhost_access_log." suffix=".log" pattern="common" directory="${jboss.server.home.dir}/log" resolveHosts="false" /> Access logs are creating on the daily basis. I am able to see get method request in access log file but not able to see post method request. How can I capture the details of post method request in server access log

reading log file in java

流过昼夜 提交于 2019-12-08 13:46:32
Is it possible to read log files (abc.log) using java? I want a specific string from my log file. suppose this is the content of my logfile. I want the time stamp only (eg: 05:08:37) and print it the console. 2012-12-16 05:08:37,905 [Thread-1] INFO com.submit.SubmitService - Wait time 500 2012-12-16 05:08:38,444 [Thread-1] INFO com.submit.SubmitService - NO OF RECORDS TILL NOW 3755 TOTAL TIME -- << 539 2012-12-16 05:08:38,668 [Thread-1] INFO com.submit.SubmitService - Active Connection:: -69076 2012-12-16 05:08:38,670 [Thread-1] INFO com.submit.SubmitService - Active Connection:: -65764 Luca

reading log file in java

為{幸葍}努か 提交于 2019-12-08 07:50:40
问题 Is it possible to read log files (abc.log) using java? I want a specific string from my log file. suppose this is the content of my logfile. I want the time stamp only (eg: 05:08:37) and print it the console. 2012-12-16 05:08:37,905 [Thread-1] INFO com.submit.SubmitService - Wait time 500 2012-12-16 05:08:38,444 [Thread-1] INFO com.submit.SubmitService - NO OF RECORDS TILL NOW 3755 TOTAL TIME -- << 539 2012-12-16 05:08:38,668 [Thread-1] INFO com.submit.SubmitService - Active Connection::