Return-Path: X-Original-To: apmail-tapestry-dev-archive@www.apache.org Delivered-To: apmail-tapestry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ED04A17C6A for ; Thu, 19 Mar 2015 14:30:38 +0000 (UTC) Received: (qmail 70266 invoked by uid 500); 19 Mar 2015 14:30:38 -0000 Delivered-To: apmail-tapestry-dev-archive@tapestry.apache.org Received: (qmail 70079 invoked by uid 500); 19 Mar 2015 14:30:38 -0000 Mailing-List: contact commits-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tapestry.apache.org Delivered-To: mailing list commits@tapestry.apache.org Received: (qmail 69914 invoked by uid 99); 19 Mar 2015 14:30:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2015 14:30:38 +0000 Date: Thu, 19 Mar 2015 14:30:38 +0000 (UTC) From: "Nicolas Bouillon (JIRA)" To: commits@tapestry.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (TAP5-2469) RegistryImpl#loggerForBuiltinService : "Class.toString" used as logger name MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Nicolas Bouillon created TAP5-2469: -------------------------------------- Summary: RegistryImpl#loggerForBuiltinService : "Class.toStrin= g" used as logger name Key: TAP5-2469 URL: https://issues.apache.org/jira/browse/TAP5-2469 Project: Tapestry 5 Issue Type: Bug Components: tapestry-ioc Affects Versions: 5.4 Reporter: Nicolas Bouillon Starting my application i've got something like that in the log files. {noformat} 15:21:27.422 [main] DEBUG class org.apache.tapestry5.ioc.modules.TapestryIO= CModule.ServiceConfigurationListener - Service ServiceConfigurationListener= Hub ordered configuration: [] 15:21:27.726 [main] DEBUG class org.apache.tapestry5.ioc.modules.TapestryIO= CModule.ServiceConfigurationListener - Service MasterObjectProvider ordered= configuration: [org.apache.tapestry5.ioc.internal.services.ValueObjectProv= ider@29431f61, org.apache.tapestry5.ioc.internal.services.SymbolObjectProvi= der@f98cff, org.apache.tapestry5.ioc.internal.services.AutobuildObjectProvi= der@59c38af5, , org.apache.tapestry5.internal.services.ServiceAnnotationObject= Provider@6244afc4, org.apache.tapestry5.internal.services.ApplicationMessag= eCatalogObjectProvider@534d0cfa, org.apache.tapestry5.ioc.modules.TapestryI= OCModule$2@1f1ffc18, org.apache.tapestry5.ioc.internal.RegistryImpl$7@5a4e4= 92c] 15:21:27.810 [main] DEBUG class org.apache.tapestry5.ioc.modules.TapestryIO= CModule.ServiceConfigurationListener - Service SymbolSource ordered configu= ration: [org.apache.tapestry5.ioc.internal.services.SystemPropertiesSymbolP= rovider@5bf1b528, org.apache.tapestry5.internal.SingleKeySymbolProvider@2c9= 2f094, org.apache.tapestry5.internal.SingleKeySymbolProvider@1c3b221f, org.= apache.tapestry5.ioc.internal.services.SystemEnvSymbolProvider@750c23a3, or= g.apache.tapestry5.internal.util.DelegatingSymbolProvider@238280df, ,= ] 15:21:27.964 [main] DEBUG class org.apache.tapestry5.ioc.modules.TapestryIO= CModule.ServiceConfigurationListener - Service ServiceLifecycleSource mappe= d configuration: {perthread=3Dorg.apache.tapestry5.ioc.internal.services.Pe= rThreadServiceLifecycle@7fad28ac} 15:21:28.000 [main] DEBUG class org.apache.tapestry5.ioc.modules.TapestryIO= CModule.ServiceConfigurationListener - Service TypeCoercer unordered config= uration: [Object --> String, Object --> Boolean, String --> Double, String = --> java.math.BigDecimal, java.math.BigDecimal --> Double, String --> java.= math.BigInteger, String --> Long, Long --> Byte, Long --> Short, Long --> I= nteger, Number --> Long, Double --> Float, Long --> Double, String --> Bool= ean, Number --> Boolean, null --> Boolean, java.util.Collection --> Boolean= , Object --> java.util.List, Object--> java.util.List, Object--> Boolean, F= loat --> Double, byte--> java.util.List, short--> java.util.List, int--> ja= va.util.List, long--> java.util.List, float--> java.util.List, double--> ja= va.util.List, char--> java.util.List, boolean--> java.util.List, String -->= java.io.File, String --> org.apache.tapestry5.ioc.util.TimeInterval, org.a= pache.tapestry5.ioc.util.TimeInterval --> Long, Object --> Object[], java.u= til.Collection --> Object[], org.apache.tapestry5.func.Flow --> java.util.L= ist, org.apache.tapestry5.func.Flow --> Boolean, String --> org.apache.tape= stry5.json.JSONObject, String --> org.apache.tapestry5.json.JSONArray, Stri= ng --> com.gax.ib.user.User, com.gax.ib.user.User --> String, java.util.Dat= e --> String, String --> java.util.Date, String --> com.gax.ib.audit.AuditT= raceType, com.gax.ib.audit.AuditTraceType --> String, String --> com.gax.ib= .engine.cron.CronTask, com.gax.ib.engine.cron.CronTask --> String, org.apac= he.tapestry5.ComponentResources --> org.apache.tapestry5.PropertyOverrides,= String --> org.apache.tapestry5.SelectModel, java.util.Map --> org.apache.= tapestry5.SelectModel, java.util.Collection --> org.apache.tapestry5.grid.G= ridDataSource, null --> org.apache.tapestry5.grid.GridDataSource, java.util= .List --> org.apache.tapestry5.SelectModel, String --> java.util.regex.Patt= ern, org.apache.tapestry5.runtime.ComponentResourcesAware --> org.apache.ta= pestry5.ComponentResources, String --> org.apache.tapestry5.Renderable, org= .apache.tapestry5.Renderable --> org.apache.tapestry5.Block, String --> jav= a.text.DateFormat, String --> org.apache.tapestry5.ioc.Resource, org.apache= .tapestry5.Renderable --> org.apache.tapestry5.runtime.RenderCommand, java.= util.Date --> java.util.Calendar, org.apache.tapestry5.ioc.Resource --> org= .apache.tapestry5.services.dynamic.DynamicTemplate, org.apache.tapestry5.As= set --> org.apache.tapestry5.ioc.Resource, org.apache.tapestry5.ValueEncode= r --> org.apache.tapestry5.services.ValueEncoderFactory] 15:21:28.019 [main] DEBUG class org.apache.tapestry5.ioc.modules.TapestryIO= CModule.ServiceConfigurationListener - Service ServiceOverride mapped confi= guration: {} 15:21:28.130 [main] DEBUG class org.apache.tapestry5.ioc.modules.TapestryIO= CModule.ServiceConfigurationListener - Service ServletApplicationInitialize= r ordered configuration: [] 15:21:28.173 [main] DEBUG class org.apache.tapestry5.ioc.modules.TapestryIO= CModule.ServiceConfigurationListener - Service ApplicationInitializer order= ed configuration: [org.apache.tapestry5.modules.TapestryModule$36@2d5d001f] 15:21:28.203 [main] DEBUG class org.apache.tapestry5.ioc.modules.TapestryIO= CModule.ServiceConfigurationListener - Service ApplicationDefaults mapped c= onfiguration: {tapestry.file-check-interval=3D1 s, tapestry.supported-local= es=3Den,fr,de, tapestry.production-mode=3Dtrue, tapestry.hmac-passphrase=3D= 94a4217e-3c69-4d5e-bb6b-a4e4fad8164e, tapestry.javascript-infrastructure-pr= ovider=3Djquery} 15:21:28.235 [main] DEBUG class org.apache.tapestry5.ioc.modules.TapestryIO= CModule.ServiceConfigurationListener - Service FactoryDefaults mapped confi= guration: {tapestry.include-core-stack=3Dtrue, tapestry.components.grid_emp= ty_block=3Dblock:empty, tapestry.thread-pool-enabled=3Dtrue, tapestry.persi= stence-strategy=3Dsession, upload.repository-threshold=3D10240, tapestry.pa= ge-preload-mode=3DPRODUCTION, tapestry.datepicker=3D${tapestry.asset.root}/= datepicker_106, tapestry.application-version=3D0.0.1, tapestry.components.z= one_update_method=3Dhighlight, upload.repository-location=3D/tmp, tapestry.= file-check-update-timeout=3D50 ms, tapestry.file-check-interval=3D1 s, tape= stry.omit-expiration-cache-control-header=3Dmax-age=3D60,must-revalidate, t= apestry.supported-locales=3Den,it,es,zh_CN,pt_PT,de,ru,hr,fi_FI,sv_SE,fr,da= ,pt_BR,ja,el,bg,no_NB,sr_RS,mk_MK, tapestry.components.gridcolumns_sortable= _asset=3Dsortable.png, tapestry.components.gridcolumns_ascending_asset=3Dso= rt-asc.png, tapestry.start-page-name=3Dstart, tapestry.form-group-wrapper-c= ss-class=3Dform-group, tapestry.restrictive-environment=3Dfalse, tapestry.v= ersion=3D5.4-beta-26, tapestry.thread-pool.max-pool-size=3D20, tapestry.ass= et.root=3Dclasspath:META-INF/assets/tapestry5, tapestry.secure-page=3Dfalse= , tapestry.form-client-logic-enabled=3Dtrue, tapestry.charset=3DUTF-8, tape= stry.default-cookie-max-age=3D7 d, tapestry.min-gzip-size=3D100, tapestry.t= hread-pool.queue-size=3D100, tapestry.exception-report-page=3DExceptionRepo= rt, tapestry.components.forminjector_insert_position=3Dabove, tapestry.exce= ption-reports-dir=3Dbuild/exceptions, tapestry.omit-generator-meta=3Dfalse,= tapestry.session-locking-enabled=3Dtrue, upload.filesize-max=3D-1, tapestr= y.scriptaculous=3D${tapestry.asset.root}/scriptaculous_1_9_0, tapestry.comp= onent-render-tracing-enabled=3Dfalse, tapestry.compress-whitespace=3Dtrue, = tapestry.production-mode=3Dtrue, tapestry.components.validate_with_model=3D= AUTO, tapestry.hostport-secure=3D0, tapestry.unknwon-activation-context-che= ck=3Dfalse, tapestry.components.grid_table_css_class=3Dtable table-hover ta= ble-bordered table-striped, tapestry.form-group-form-field-wrapper-element-= name=3D, tapestry.response-content-type=3Dtext/html, tapestry.combine-scrip= ts=3D${tapestry.production-mode}, tapestry.app-catalog=3Dcontext:WEB-INF/${= tapestry.app-name}.properties, tapestry.enable-pageloading-mask=3Dtrue, tap= estry.module-path-prefix=3Dmodules, tapestry.application-folder=3D, tapestr= y.hmac-passphrase=3D, tapestry.javascript-infrastructure-provider=3Dprototy= pe, tapestry.enable-html5-support=3Dfalse, tapestry.form-group-form-field-w= rapper-element-css-class=3D, tapestry.compact-json=3D${tapestry.production-= mode}, tapestry.form-group-label-css-class=3Dcontrol-label, tapestry.gzip-c= ompression-enabled=3Dtrue, tapestry.asset-url-fully-qualified=3Dfalse, tape= stry.reserved-form-control-names=3Dreset,submit,select,id,method,action,ons= ubmit,cancel, tapestry.components.grid_rows_per_page=3D25, upload.requestsi= ze-max=3D-1, tapestry.clustered-sessions=3Dtrue, tapestry.form-field-css-cl= ass=3Dform-control, tapestry.asset-path-prefix=3Dassets, tapestry.component= s.grid_pager_position=3Dtop, tapestry.strict-css-url-rewriting=3Dfalse, tap= estry.bootstrap-root=3D${tapestry.asset.root}/bootstrap, tapestry.component= s.zone_show_method=3Dshow, tapestry.context-path=3D, tapestry.default-style= sheet=3D, tapestry.thread-pool.core-pool-size=3D3, tapestry.components.grid= columns_descending_asset=3Dsort-desc.png, tapestry.encode-locale-into-path= =3Dtrue, tapestry.components.gridpager_page_range=3D5, tapestry.secure-enab= led=3D${tapestry.production-mode}, tapestry.hostname=3D, tapestry.hostport= =3D0, tapestry.lenient-date-format=3Dfalse, tapestry.thread-pool.keep-alive= =3D1 m, tapestry.components.palette_rows_size=3D10, tapestry.white-list-onl= y-page=3Dfalse, tapestry.enable-minification=3D${tapestry.production-mode},= tapestry.components.forminjector_show_function=3Dhighlight} {noformat} The problem is that I've set "org.apache" as INFO level, and the rest in DE= BUG level, but I still get DEBUG messages from tapestry. The problem there is that the logger name is "class org.apache.tapestry5.io= c.modules.TapestryIOCModule.ServiceConfigurationListener". There is an error in the code org.apache.tapestry5.ioc.internal.RegistryImp= l#loggerForBuiltinService (org/apache/tapestry5/ioc/internal/RegistryImpl.j= ava:379) {code:java} private Logger loggerForBuiltinService(String serviceId) { return loggerSource.getLogger(TapestryIOCModule.class + "." + servi= ceId); } {code} It should be : {code:java} private Logger loggerForBuiltinService(String serviceId) { return loggerSource.getLogger(TapestryIOCModule.class.getName() + "= ." + serviceId); } {code} (the "getName()" is missing) -- This message was sent by Atlassian JIRA (v6.3.4#6332)