Re: Logging using Log4Net

2018-02-14 Thread ozgurnevres
Great. Many thanks!



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Logging using Log4Net

2018-02-13 Thread Alexey Popov
Igg.zip   



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Logging using Log4Net

2018-02-13 Thread Alexey Popov
Hi,

Hm, actually, you've got several log4net misconfigurations in your solution.
Everything was fine with Ignite config itself ).
Please see updated minified solution attached. Just "build a solution" and
it will restore all required packages.

The following log4net misconfigurations fixed:

1. Your app.config file section  was ignored, an explicit call
XmlConfigurator.Configure() is required for log4net.

2. you should always have  logger in  section.

3.  name attribute could not be abstract. It should have some
package name.

4. %property{LogName} from xml should be initialized in global context
before usage. Please see call 
log4net.GlobalContext.Properties["LogName"] =
System.Reflection.Assembly.GetExecutingAssembly().GetName().Name;

Please find more info about log4net at [1]

Thank you,
Alexey

[1] https://logging.apache.org/log4net/release/manual/configuration.html




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Logging using Log4Net

2018-02-12 Thread ozgurnevres
You can download a simple reproducer project here: 
https://1drv.ms/u/s!ApZeEREhT0aVxHwU56ywJxhuVWvR
  



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Logging using Log4Net

2018-02-12 Thread ozgurnevres
"please ensure that your log4net configuration section  is 
actually used"

How can I ensure that? It seems there's no property in logger configuration
to tell which appender will be used.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Logging using Log4Net

2018-02-12 Thread Alexey Popov
Hi,

There could be several issues. Unfortunately, you just provided some config
snippets.

First of all, please add  to your appender
RollingLogFileAppender config.

Then, please ensure that your log4net configuration section  is
actually used.
It is better to have a separate file log4net.config file.

Please share a simple reproducer project if you still face any issue.

Thank you,
Alexey



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Logging using Log4Net

2018-02-12 Thread ozgurnevres
Hi,

I want to use log4net for logging. Ignite starts from
ApplicationConfiguration like this:
Ignition.StartFromApplicationConfiguration()

It seems it isn't logging in C:\Logs. What am I doing wrong? Ignite
configuration is like 

  http://ignite.apache.org/schema/dotnet/IgniteConfigurationSection;
gridName="myGrid1" clientMode="false" jvmMaxMemoryMb="6144">

...

And Log4Net configuration in app.config:
  

  
  
  
  
  
  
  
  
  

  


  
  
  

  





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/