Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #20941
| X-Received | by 10.224.184.11 with SMTP id ci11mr29677256qab.1.1357300830709; Fri, 04 Jan 2013 04:00:30 -0800 (PST) |
|---|---|
| Received | by 10.49.98.42 with SMTP id ef10mr8676660qeb.15.1357300830649; Fri, 04 Jan 2013 04:00:30 -0800 (PST) |
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!p13no1474409qai.0!news-out.google.com!k2ni4893qap.0!nntp.google.com!t8no1467546qaj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.java.programmer |
| Date | Fri, 4 Jan 2013 04:00:30 -0800 (PST) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=37.46.46.41; posting-account=YJDNAQoAAADZwmW1STVJ1bRdlb6RdxBo |
| NNTP-Posting-Host | 37.46.46.41 |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <e3230fa7-b672-49e0-a7ef-dfb55a9180b5@googlegroups.com> (permalink) |
| Subject | dependency injection and loggers |
| From | Tomer <tomerbd1@gmail.com> |
| Injection-Date | Fri, 04 Jan 2013 12:00:30 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Xref | csiph.com comp.lang.java.programmer:20941 |
Show key headers only | View raw
I love the concept of dependency injection via ctor. it simplifies life and makes testing easy. what about logger? i usually instantiate it in private static logger = Logger.getLogger(myclass); however this is not dependency injection, should I pass the logger into each ctor? this would look wierd... so what to do about loggers and depedency injection? thanks
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
dependency injection and loggers Tomer <tomerbd1@gmail.com> - 2013-01-04 04:00 -0800
Re: dependency injection and loggers markspace <markspace@nospam.nospam> - 2013-01-04 07:13 -0800
Re: dependency injection and loggers Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2013-01-04 09:18 -0800
Re: dependency injection and loggers Arne Vajhøj <arne@vajhoej.dk> - 2013-01-04 22:27 -0500
Re: dependency injection and loggers Wayne <nospam@all.invalid> - 2013-01-04 23:33 -0500
Re: dependency injection and loggers Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-01-05 11:55 -0400
Re: dependency injection and loggers Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2013-01-05 10:01 -0800
Re: dependency injection and loggers Arne Vajhøj <arne@vajhoej.dk> - 2013-01-05 15:17 -0500
Re: dependency injection and loggers Arne Vajhøj <arne@vajhoej.dk> - 2013-01-05 16:37 -0500
Re: dependency injection and loggers Lew <lewbloch@gmail.com> - 2013-01-05 12:24 -0800
Re: dependency injection and loggers Arne Vajhøj <arne@vajhoej.dk> - 2013-01-05 16:41 -0500
Re: dependency injection and loggers Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2013-01-04 10:31 -0800
Re: dependency injection and loggers Lew <lewbloch@gmail.com> - 2013-01-04 11:36 -0800
Re: dependency injection and loggers Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2013-01-04 11:57 -0800
Re: dependency injection and loggers Arne Vajhøj <arne@vajhoej.dk> - 2013-01-04 22:28 -0500
Re: dependency injection and loggers Arne Vajhøj <arne@vajhoej.dk> - 2013-01-04 22:24 -0500
csiph-web