Scott Alexander | 1 Dec 2008 16:43
Picon

Strong Name Key

Just curious if there is any new information regarding the
availability of = the log4net private key.

I have a project that uses log4net but requires a minor modification
to the=  code (RollingFileAppender RollFile method marked as virtual).
 This is a p= roblem b/c I also use some other assemblies (i.e.
NHibernate) that use log4= net. Now I have two log4net assemblies
signed w/ different keys...

In order to get this to almost work (without using the GAC) I have to
copy = both assemblies to my bin directory (bin/log4net.dll and
bin/log4net/log4ne= t.dll), then use a <codebase> element in the
application config file to ove= rride the assembly binding. This
almost works, w/ the exception of the majo= r problem that I now have
two log4net assemblies instantiated and cannot re= ceive log messages
from both using a single appender.

This would be a trivial problem if I had access to the private key...
any a= dvice?

Thanks
Scott Alexander

P.S. love the project!

Walden H. Leverich | 1 Dec 2008 17:11
Favicon

RE: Strong Name Key

Does NHibernate require a signed version of the assembly? Why not just
drop you modified version, unsigned, into the bin directory and let
NHibernate use it. 

-Walden

--

-- 
Walden H Leverich III
Tech Software
(516) 627-3800 x3051
WaldenL <at> TechSoftInc.com
http://www.TechSoftInc.com

Quiquid latine dictum sit altum viditur.
(Whatever is said in Latin seems profound.)

Scott Alexander | 1 Dec 2008 17:16
Picon

Re: Strong Name Key

NHibernate is compiled against the strong named version of log4net so
yes, it requires a specific version (1.2.10.9 signed by the log4net
key) of log4net.

Scott

On Mon, Dec 1, 2008 at 8:11 AM, Walden H. Leverich
<WaldenL <at> techsoftinc.com> wrote:
> Does NHibernate require a signed version of the assembly? Why not just
> drop you modified version, unsigned, into the bin directory and let
> NHibernate use it.
>
> -Walden
>
> --
> Walden H Leverich III
> Tech Software
> (516) 627-3800 x3051
> WaldenL <at> TechSoftInc.com
> http://www.TechSoftInc.com
>
> Quiquid latine dictum sit altum viditur.
> (Whatever is said in Latin seems profound.)
>

Scott Alexander | 1 Dec 2008 17:16
Picon

Re: Strong Name Key

correction - (1.2.10.0 signed by the log4net key)

On Mon, Dec 1, 2008 at 8:16 AM, Scott Alexander <sjalex <at> gmail.com> wrote:
> NHibernate is compiled against the strong named version of log4net so
> yes, it requires a specific version (1.2.10.9 signed by the log4net
> key) of log4net.
>
> Scott
>
> On Mon, Dec 1, 2008 at 8:11 AM, Walden H. Leverich
> <WaldenL <at> techsoftinc.com> wrote:
>> Does NHibernate require a signed version of the assembly? Why not just
>> drop you modified version, unsigned, into the bin directory and let
>> NHibernate use it.
>>
>> -Walden
>>
>> --
>> Walden H Leverich III
>> Tech Software
>> (516) 627-3800 x3051
>> WaldenL <at> TechSoftInc.com
>> http://www.TechSoftInc.com
>>
>> Quiquid latine dictum sit altum viditur.
>> (Whatever is said in Latin seems profound.)
>>
>

(Continue reading)

suedeuno | 1 Dec 2008 17:32
Picon
Favicon

Logging issue, Repository count is 1


I have two projects setup, one uses Unity depencency injection and the other
uses StructureMap. The project using Unity will log both from unit tests and
from the web. The StructureMap project will only log from the unit test. 

As a note, when I call 'log =
LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);'
from the Unity project the LogManager Repository count is 0. 

When I call the same line from the StructureMap project unit test the
repository count is also 0, but from the Structure Map web the repository
count is 1 with 59 values. I'm assuming this is a key to why it's not
working within the web of the structure map project. Can anyone provide any
help in debugging/fixing this issue?
--

-- 
View this message in context: http://www.nabble.com/Logging-issue%2C-Repository-count-is-1-tp20774508p20774508.html
Sent from the Log4net - Users mailing list archive at Nabble.com.

suedeuno | 1 Dec 2008 18:05
Picon
Favicon

RE: configuration problems, not logging


Actually that section is present in the web.config. Strangely if I remove the
attribute from assembly.info no logging occurs, but if I replace the
attribute back to the assembly.info then logging works. Is there an issue
with log4net and .Net 3.5 framework?

Radovan Raszka wrote:
> 
> You probably missing these lines in your web.config / app.config
> <configSections>
>   <section name="log4net"
> type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
> </configSections>
> 
> See http://logging.apache.org/log4net/release/manual/configuration.html,
> .config Files paragraph
> 
> Radovan
> 

--

-- 
View this message in context: http://www.nabble.com/configuration-problems%2C-not-logging-tp20688643p20774520.html
Sent from the Log4net - Users mailing list archive at Nabble.com.

suedeuno | 1 Dec 2008 23:55
Picon
Favicon

Re: Logging issue, Repository count is 1


I had to call XmlConfigurator.Configure(); within the global.asax file for it
to work due to StructureMap. Didn't have the problem with Unity. 

--

-- 
View this message in context: http://www.nabble.com/Logging-issue%2C-Repository-count-is-1-tp20774508p20782493.html
Sent from the Log4net - Users mailing list archive at Nabble.com.

Eric Marthinsen | 2 Dec 2008 01:31
Favicon
Gravatar

Best Way to Set Up Massive Number of Loggers

Hello-

I'm working on an app that coordinates data transfers among multiple trading partners. I want to create a log file for each trading partner. I had a few ideas of how to do this, but am not sure which would be considered the optimal way. The expected number of trading partners is likely to be around 100, but could be higher. Here are my thoughts:

1. Add a bunch of named loggers to my log4net.config file
2. Do programmatic configuration of the loggers on application start
3. Write my own appender that is based on the RollingFileAppender

Do any of these scream out as being a good or bad solution? Is there a better approach that I might be missing? Thanks in advance.

Regards,
Eric

Walden H. Leverich | 2 Dec 2008 01:39
Favicon

RE: Best Way to Set Up Massive Number of Loggers

Since you're asking for thoughts... bad idea. To me log4net is plumbing, that is it's programmer based stuff. Sounds to me like you're attempting to use it to satisfy a user requirement. I think you'd be better off adding the logging as part of the business processing. Now, having said that, there are still times when it's nice to know which trading partner you're dealing with on a log message. In that case I'd push the partner id into the NDC at the start of the process, and pop it at the end. That way you'll have it in the log (if you format it correctly). You'll have a single log file, but you can always fgrep it. We do something similar with several levels of NDC and can quickly come up with a issue-specific logfile using grep.

 

-Walden

 

--

Walden H Leverich III

Tech Software

(516) 627-3800 x3051

WaldenL <at> TechSoftInc.com

http://www.TechSoftInc.com

 

Quiquid latine dictum sit altum viditur.

(Whatever is said in Latin seems profound.)

 

From: Eric Marthinsen [mailto:emarthinsen <at> agilecommerce.com]
Sent: Monday, December 01, 2008 7:31 PM
To: log4net-user <at> logging.apache.org
Subject: Best Way to Set Up Massive Number of Loggers

 

Hello-

I'm working on an app that coordinates data transfers among multiple trading partners. I want to create a log file for each trading partner. I had a few ideas of how to do this, but am not sure which would be considered the optimal way. The expected number of trading partners is likely to be around 100, but could be higher. Here are my thoughts:

1. Add a bunch of named loggers to my log4net.config file
2. Do programmatic configuration of the loggers on application start
3. Write my own appender that is based on the RollingFileAppender

Do any of these scream out as being a good or bad solution? Is there a better approach that I might be missing? Thanks in advance.

Regards,
Eric

Eric Marthinsen | 2 Dec 2008 01:48
Favicon
Gravatar

Re: Best Way to Set Up Massive Number of Loggers

Hi Walden-

I like the grep idea. The motivation for the multiple log files is twofold. First, they get really big really quickly. I realize I can roll them on size, but it's nice to have a daily log file. Second, we have some utilities that can take a log file and replay previous transactions (we are logging a lot of data in custom formats). These are still programmer tools (and QA).

-Eric


On Mon, Dec 1, 2008 at 7:39 PM, Walden H. Leverich <WaldenL <at> techsoftinc.com> wrote:

Since you're asking for thoughts... bad idea. To me log4net is plumbing, that is it's programmer based stuff. Sounds to me like you're attempting to use it to satisfy a user requirement. I think you'd be better off adding the logging as part of the business processing. Now, having said that, there are still times when it's nice to know which trading partner you're dealing with on a log message. In that case I'd push the partner id into the NDC at the start of the process, and pop it at the end. That way you'll have it in the log (if you format it correctly). You'll have a single log file, but you can always fgrep it. We do something similar with several levels of NDC and can quickly come up with a issue-specific logfile using grep.

 

-Walden

 

--

Walden H Leverich III

Tech Software

(516) 627-3800 x3051

WaldenL <at> TechSoftInc.com

http://www.TechSoftInc.com

 

Quiquid latine dictum sit altum viditur.

(Whatever is said in Latin seems profound.)

 

From: Eric Marthinsen [mailto:emarthinsen <at> agilecommerce.com]
Sent: Monday, December 01, 2008 7:31 PM
To: log4net-user <at> logging.apache.org
Subject: Best Way to Set Up Massive Number of Loggers

 

Hello-

I'm working on an app that coordinates data transfers among multiple trading partners. I want to create a log file for each trading partner. I had a few ideas of how to do this, but am not sure which would be considered the optimal way. The expected number of trading partners is likely to be around 100, but could be higher. Here are my thoughts:

1. Add a bunch of named loggers to my log4net.config file
2. Do programmatic configuration of the loggers on application start
3. Write my own appender that is based on the RollingFileAppender

Do any of these scream out as being a good or bad solution? Is there a better approach that I might be missing? Thanks in advance.

Regards,
Eric



Gmane