configuration

Log separate log levels to separate files in log4j2 properties file

感情迁移 提交于 2020-01-17 08:31:50
问题 Is there any way We can create separate log files for different log levels. All I want is to log "error" logs to one file and "info" logs to another file. I did not find any solution to do this in log4j2.properties. Here is the log4j2.xml which I got and it works fine. Can anyone help me writing the same in properties file. <?xml version="1.0" encoding="UTF-8"?> <Configuration status="WARN"> <Properties> <Property name="log-path">logs</Property> </Properties> <Appenders> <Console name=

Log separate log levels to separate files in log4j2 properties file

喜夏-厌秋 提交于 2020-01-17 08:31:07
问题 Is there any way We can create separate log files for different log levels. All I want is to log "error" logs to one file and "info" logs to another file. I did not find any solution to do this in log4j2.properties. Here is the log4j2.xml which I got and it works fine. Can anyone help me writing the same in properties file. <?xml version="1.0" encoding="UTF-8"?> <Configuration status="WARN"> <Properties> <Property name="log-path">logs</Property> </Properties> <Appenders> <Console name=

Visual Studio 2013 configuration properties missing

老子叫甜甜 提交于 2020-01-16 20:03:45
问题 I just installed Visual Studio 2013 (Update 4) and when I right click on the solution under Solution Explorer and select properties I get a window like this (sorry can't post images, not enough reputation): https://social.msdn.microsoft.com/Forums/getfile/375794 As you can see there are a few options missing there, like General options, Debugging, Linker etc, which were all present on my old computer when I used VS 2010. It is set up to C# development environment, if that's relevant. This is

Visual Studio 2013 configuration properties missing

别来无恙 提交于 2020-01-16 20:03:32
问题 I just installed Visual Studio 2013 (Update 4) and when I right click on the solution under Solution Explorer and select properties I get a window like this (sorry can't post images, not enough reputation): https://social.msdn.microsoft.com/Forums/getfile/375794 As you can see there are a few options missing there, like General options, Debugging, Linker etc, which were all present on my old computer when I used VS 2010. It is set up to C# development environment, if that's relevant. This is

Enable Proxy Authentication for normal windows application

无人久伴 提交于 2020-01-16 19:25:15
问题 my company's internet works on proxy server with Authentication(i.e. Browser prompts with window for username/password everytime i tried to access any web page). Now i have some windows application which tries to access internet(like WebPI/Visual Studio 2008 for rss feeds), but as they are unable to popup the the authentication window, they are unable to connect with internet with error: (407) Proxy Authentication Required . Here the exception is VS2008, first time it always fails to load rss

Android: how to store resources that may be updated at runtime

依然范特西╮ 提交于 2020-01-16 18:40:08
问题 What is the best way to store sound files (ogg) that are distributed with the app and updated at runtime? I am developing an app that includes a default set of sounds as resources (res/raw/*.ogg). These work fine for the defaults but I want the user to be able to update the set of sounds with recorded sounds and downloads from the Internet. The problem is that the resources are read-only and, I think, assets are also read-only. I don't know how to include files in the project so they can be

Very simple C# program generates a `NullReferenceException was unhandled` error

◇◆丶佛笑我妖孽 提交于 2020-01-16 05:09:10
问题 I have a simple WinForm that I'm using to try to help me with ADO.NET. It has a datagridview I have added a compact sql server database to the project called experiment.sdf In the App.config file I have added the following. I used a previous project app file to base this on so maybe there's an error in here?: <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> </configSections> <connectionStrings> <add name="DatabaseDGVexperiments.Properties.Settings

AutoMapper : Site wide usage of IValueFormatter for given types

岁酱吖の 提交于 2020-01-16 03:43:09
问题 It is my understanding I can configure AutoMapper in the following way and during mapping it should format all source model dates to the rules defined in the IValueFormatter and set the result to the mapped model. ForSourceType<DateTime>().AddFormatter<StandardDateFormatter>(); ForSourceType<DateTime?>().AddFormatter<StandardDateFormatter>(); I get no effect for my mapped class with this. It only works when I do the following: Mapper.CreateMap<Member, MemberForm>().ForMember(x => x

how to allow .com in a url path using IIS6 on Win2003 R2 x64?

半腔热情 提交于 2020-01-16 02:13:09
问题 it seems IIS6 on Win2003 R2 Enterprise x64 SP2 will not allow you to use .com in a url path. e.g if i create a folder foo.com in my web root, containing a default.htm, this url results in a 404: http://localhost/foo.com/default.htm however, following the exact same steps on Win2003 R2 Standard x86 SP2, and IIS6 will serve up the file just fine. Neither server has urlscan installed. Is there a way to tell IIS6 on Win2003 x64 to allow .com in a url path? 回答1: This looks like it might relate the

How can I easily switch between environment specific runtime configuration with IntelliJ?

末鹿安然 提交于 2020-01-16 01:06:30
问题 In most Java projects (Maven, Spring) I work on, I have the following requirements: The packaged jar needs to run in multiple environments e.g. dev, beta, prod The jar must not be rebuilt for each environment Each environment requires different configuration properties In development, I need to be able to easily switch between different environments in order to ensure that each environment is configured correctly, before deployment So far, I have accomplished this by putting all configuration