I want to configure my Python logger in such a way so that each instance of logger should log in a file having the same name as the name of the logger itself.
e.g.:
log_hm = logging.getLogger('healthmonitor')
log_hm.info("Testing Log") # Should log to /some/path/healthmonitor.log
log_sc = logging.getLogger('scripts')
log_sc.debug("Testing Scripts") # Should log to /some/path/scripts.log
log_cr = logging.getLogger('cron')
log_cr.info("Testing cron") # Should log to /some/path/cron.log
I want to keep it generic and dont want to hardcode all kind of logger names I can have. Is that possible?
hi, its a very basic question, i dunno why i am not able to configure it out.
lets say this is the code:
a="xyz"
g="abcd " & a
so now the value of g = abcd xyz
i want quotes around xyz i.e g should be abcd "xyz"
how to do it?
I downloaded and install the latest version of Google App Engine Plugin into my Eclipse and created a project with it using both GAE SDK and GWT SDK.
The funny thing is, randomly, my project become subjective to error, like the class RemoteServiceServlet cannot be resolved.
The errors will be removed if I go to the configure tab of the project and change the GWT SDK from Default to Specific version (or vice versa).
Has anyone ever encountered the same error? What the heck is it?
Howdy,
I followed these two tutorial to get Client Application services working using WCF instead of the traditional web services project:
http://msdn.microsoft.com/en-us/library/bb398990.aspx
http://msdn.microsoft.com/en-us/library/bb546195.aspx
But when configuring the winforms project services tab with the wcf services location, the generated code in app.config points to a "Authentication_JSON_AppService.axd" service uri that doesn't exist.
How can I use Client Application Services using WCF as the "transport" and still use the services tab to configure the settings on the client windows application?
Thanks
I am attempting to write some tests using webtest to test out my python GAE application. The problem I am running into is that the application is listening on port 8080 but I cannot configure webtest to hit that port.
For example, I want to use app.get('/getreport') to hit http://localhost:8080/getreport. Obviously, it hits just thits http:// localhost/getreport.
Is there a way to set up webtest to hit a particular port?
Still Now I am using JUnit, I came across EasyMock, I am understanding both are for the same purpose.
Is my understanding correct?
What are the advantages does EasyMock has over the Junit?
Which one is easier to configure?
Does EasyMock has any limitations?
Please help me to learn
On Windows XP, I ran "configure", and Qt says that I'm configured to use phonon, but I'm not sure how to set up my environment correctly in Qt Creator. According to the Qt documentation, I need to call:
Set DXSDK_DIR=C:\Program Files\Microsoft DirectX SDK (February 2007)
%DXSDK_DIR%\utilities\bin\dx_setenv.cmd
C:\program files\Microsoft Platform SDK\setenv.cmd
How do I do this in the Qt Creator IDE?
Thanks!
Can I configure Netbeans to autocomplete code when I type the capital letters?
E.g. Z displays completion list starting with the letter Z, e.g. Zend_…, then I type vh, and the list is limited to this items, which have the capital letters Z, V, H in it, e.g. Zend_View_Helper_….
Does Netbeans support this bevaviour?
I've managed to configure Log4Net with a RollingFileAppender in order to generate Xml files.
However, the generated files are not valid XML files until a "roll" is performed - the XML doesn't have a closing XML tag.
Basically, this prevents to files from being read until that are "closed"/"rolled".
Anyone else encountered this issue?
I my previous (custom) solution I had to write the closing tag after writing each entry, and overwrite it with the next entry... :(
For example, I would prefer to write my commit messages in vim, but it is opening emacs.
How do I configure git to always use vim instead? Note that I want to do this globally, not just for a single project.
We want to run selenium backed jwebunit tests from our hudson server. We have a couple of selenium rc servers already on our network which I'd like to reuse.
However how can I configure jwebunit to use those servers as I would like to avoid installing a slenium rc server on the hudson. Building is already work enough without starting/stopping firefoxes.
I have Visual Studio 2005 and want to teach myself DirectX in my free time. I downloaded the latest Windows 7 and DirectX SDKs. According to Microsoft's website, the latest DirectX SDK is not compatible with Visual Studio 2005 (I assume they mean it's not compatible with the SDK it came with). Can I configure VS2005 to use the SDKs I downloaded instead of the SDK it came with? If so, is there anything I should be particularly careful with?
Hi,
I need to have the statistics of a web site and generate reports. I am using Liferay portal. Is there anything built-in for web analytics in Liferay? if yes, please help how to configure it?
Thanks,
Dhananjay
http://www.ee99ee.com/blog/2009/02/08/how-to-get-aspnet-mvc-working-under-iis-51-on-windows-xp/
Can the following be put into batch commands? If not, is there an alternative where the configuration can be set through an executable without the user having to configure through IIS?
I have several frequent Cron jobs that are run via Rake and the output of those jobs are e-mailed (via a MAILTO). Due to the fact that these tasks load the Rails environment (which includes Erubis) they always prints out "** Erubis 2.6.5" on startup. This means that an e-mail is always generated since Cron receives output. Is there any way to configure Erubis to cease printing this startup message to the console?
What is the optimal way to configure/code NServiceBus to delay retrying messages, in its default configuration retry happens almost immediately upto the number of attempts defined in the config file. I'd ideally like to retry again after an hour etc..
Also how does HandleCurrentMessageLater() work, what does the Later aspect refer to?
Hi I am using Crystal Reports 10 with IIS Server. I wish to display some of the reports in Portuguese language. How can I configure Crystal Reports to display data in Portuguese ? I guess I will need to download a language pack for this but will it allow word-by-word conversion from English to Portuguese ? Grammatically correct sentences are not currently my concern. Any inputs will be greatly appreciated.
When configuring filters, I can pass some values to a filter as initial parameters in web.xml and obtain those values in Filter via FilterConfig.
How can I configure some initial parameters in web.xml for HttpSessionListener? If this is not possible, what are alternatives?
Hi all,
I did developed a custom SharePoint Web Service . It is working fine when using http. But when we configure SSL(https) , it is not working and throwing the below error.
Request for the permission
of type 'Microsoft.SharePoint.Security.SharePointPermission,
Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral,
PublicKeyToken=71e9bcee11233hj' failed.
Does anyone came accross a similar situation or any ideas on why this is happening?
Thanks
Carol
Hi all!
When I'm trying to run autogen from MSys 1.11 on a source, it always giving an error called,
configure.ac:9: option 'tar-ustar' not recognized
Can anyone please help me to get-rid of this error ?
Note:
andtar-v7, tar-ustar, tar-pax. all these 3 didn't work. Thank you...
Hello,
I have successfully deployed an instance of SOLR 1.4 into Tomcat6 on a Redhat server.
My question is, how do I configure it to log SOLR events? When I was using it previously on Jetty everything was getting logged to jetty/logs. However in Tomcat it doesn't seem to show up anywhere.
Any ideas?
Thanks!
MethodExpression methodExpression =
application.getExpressionFactory().createMethodExpression(
FacesContext.getCurrentInstance().getELContext(),
"#{PrismBacking.onItemClick}",
null,
new Class[] { ActionEvent.class });
menuItem.setActionExpression(methodExpression);
I created a dynamic drop down as above my creating action listener but the listener was not called. I included the method inside the getter of dropdown in backing bean. Do I have to configure the action listener in any of the config files. kindly help.
I am using eclipse 3.4.I often keep searching for files in my project.I wanted to create a file search with filter.Like i should be able to configure the filter in preferences.later when i press ctrl+shift+ F (Assuming this is what i give the shortcut) it should display only those files.
Why i came up with this is bcos i might want to avoid java files while searching.So life becomes little easier.
Hi everyone,
I am new in php with oracle. Trying to connect with oracle by php. But have no success. I have installed xammp since i had to work with mysql. And now i have to use oracle 9i (9.2.0.6). Now if i use -- oci_connect(username, password, servicename) -- It says undefined function oci_connect();
Can any one tell how to configure xammpp for oracle?
Thanks in advance