Re: Happy Christmas
Merry Christmas to all of the Karaf team, which is doing great work!
Re: Announce: Weekly allowance app on karaf
> Jean-Baptiste Onofre : > Hi Steinar, > Great job ! And very good application idea ;) Thanks! :-) > As said on twitter, I will test it and take a look. Great! :-) And, as I said: if I get actual users other than myself, I will make actual releases to maven central, which will simplify the install (right now, it's installed from snapshots in my own maven repo, which means that my maven repo must be added to karaf).
Re: Happy Christmas
Merry Christmas and Happy New Year to all!!! > On Dec 24, 2020, at 12:28 PM, Jean-Baptiste Onofre wrote: > > Hi Karafers, > > On behalf of the Karaf team, I wish you a very happy Christmas. > > I think we all deserve good time with friends and family (obviously in > respect of Covid related directives). > > I will send a longer email during the week end with a Karaf gift and a > summary of this past year for Karaf community ;) > > So, again, have great time and happy Christmas. > > Regards > JB
Re: Happy Christmas
Happy Christmas to you too and @devs On Thu, Dec 24, 2020, 6:28 PM Jean-Baptiste Onofre wrote: > Hi Karafers, > > On behalf of the Karaf team, I wish you a very happy Christmas. > > I think we all deserve good time with friends and family (obviously in > respect of Covid related directives). > > I will send a longer email during the week end with a Karaf gift and a > summary of this past year for Karaf community ;) > > So, again, have great time and happy Christmas. > > Regards > JB
Happy Christmas
Hi Karafers, On behalf of the Karaf team, I wish you a very happy Christmas. I think we all deserve good time with friends and family (obviously in respect of Covid related directives). I will send a longer email during the week end with a Karaf gift and a summary of this past year for Karaf community ;) So, again, have great time and happy Christmas. Regards JB
Re: Announce: Weekly allowance app on karaf
Hi Steinar, Great job ! And very good application idea ;) As said on twitter, I will test it and take a look. Regards JB > Le 24 déc. 2020 à 09:49, Steinar Bang a écrit : > > If your kids to chores around the house and get paid for it, and you > need a way to track chores and payments, this is the webapp for > you. Open Source (APLv2) and free. > https://twitter.com/steinarba/status/1342021311896416262?s=20 > > Runs on ApacheKaraf and PostgreSQL. > > PS if I get actual users other than myself, I'll make releases to maven >central, instead of just using the latest snapshot from my own maven >repo (which is what I currently do) > > PPS This is the first i18n/i11n version, supporting the locales nb_NO >and en_GB. I'll take pull requests for other locales, but if you >decide to make one, please make the PR against the using-react >branch. This is the unstyled react branch, and I make all changes >not releated to bootstrap styling there, and merge that into >work/using-react-with-bootstrap4, which in turned is merged into >master >
RE: Configuring MDC logging karaf 4 camel 3.7.0
If you want you can use my computer to avoid building windows vm Michael. De : JB Onofré Envoyé : jeudi 24 décembre 2020 17:00 À : user@karaf.apache.org Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 I would consider as a big if I have the error on Windows. I’m suspecting an issue on Windows only (I hate this os ;) ). Let me setup a vm (just need time). Regard JB Le 24 déc. 2020 à 16:36, michael e a écrit : Ok thanks so is a bug ? Or i just have to change something ? (This is the provided configuration i didn't change anythin expect fileName pattern) Regards, Michael. De : JB Onofré Envoyé : jeudi 24 décembre 2020 16:23 À : user@karaf.apache.org Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 Understood. I don’t have any error. The error you have seems related to the rolling file configuration. Regards JB Le 24 déc. 2020 à 15:16, michael e a écrit : Ok thanks 'All log files are created and populated' for me also just then in the karaf i see ERROR logs Thanks, Regards, Michael. De : JB Onofré Envoyé : jeudi 24 décembre 2020 15:05 À : user@karaf.apache.org Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 Yeah. I tried with the karaf camel examples. All log files are created and populated. I will bootstrap a Windows vm to test. Regards JB Le 24 déc. 2020 à 14:52, michael e a écrit : No it is a last fresh download version ok Karaf (4.3.0) did you try with camel MDC properties ? And no permission issues. Michael. De : JB Onofré Envoyé : jeudi 24 décembre 2020 14:42 À : user@karaf.apache.org Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 By the way, you don’t have any permission issue ? Le 24 déc. 2020 à 14:42, JB Onofré a écrit : Do you use karaf vanilla or a custom distribution ? I confirm that it works fine for me on Karaf vanilla (at least on Linux). Regards JB Le 24 déc. 2020 à 14:02, michael e a écrit : I also add the absolute path i also get exception my configuration: # Sift - MDC routing log4j2.appender.routing.type = Routing log4j2.appender.routing.name = Routing log4j2.appender.routing.routes.type = Routes log4j2.appender.routing.routes.pattern = \$\$\\\{ctx:bundle.name\} log4j2.appender.routing.routes.bundle.type = Route log4j2.appender.routing.routes.bundle.appender.type = RollingRandomAccessFile log4j2.appender.routing.routes.bundle.appender.name = Bundle-\$\\\{ctx:bundle.name\} log4j2.appender.routing.routes.bundle.appender.fileName = D:/karaf/apache-karaf-4.3.0/data/log/bundle-\$\\\{ctx:camel.contextId\}.log log4j2.appender.routing.routes.bundle.appender.filePattern = ${karaf.log}/bundle-\$\\\{ctx:bundle.name\}.log.%i log4j2.appender.routing.routes.bundle.appender.append = true log4j2.appender.routing.routes.bundle.appender.layout.type = PatternLayout log4j2.appender.routing.routes.bundle.appender.layout.pattern = ${log4j2.pattern} log4j2.appender.routing.routes.bundle.appender.policies.type = Policies log4j2.appender.routing.routes.bundle.appender.policies.size.type = SizeBasedTriggeringPolicy log4j2.appender.routing.routes.bundle.appender.policies.size.size = 8MB Exception: org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Cannot access RandomAccessFile java.io.IOException: La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Could not create plugin of type class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender for element RollingRandomAccessFile: java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$RollingRandomAccessFileManagerFactory@7ab1ab29] unable to create manager for [D:/karaf/apache-karaf-4.3.0/data/log/bundle-${ctx:camel.contextId}.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$FactoryData@3219c6e6] org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Unable to invoke factory method in class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender for element RollingRandomAccessFile: java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Unable to create Appender of type RollingRandomAccessFile Regards, Michael. De : Jean-Baptiste Onofre Envoyé : jeudi 24 décembre 2020 07:13 À : user@karaf.apache.org Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 Hi, I just tested the configuration I provided in etc/org.ops4j.pax.logging.cfg. Here’s my config (in etc/org.ops4j.pax.logging.cfg): First, I’ve enabled sift appender: log4j2.rootLogger.appenderRef.Sift.ref = Routing Then, I added the appender:
Re: Configuring MDC logging karaf 4 camel 3.7.0
I would consider as a big if I have the error on Windows. I’m suspecting an issue on Windows only (I hate this os ;) ). Let me setup a vm (just need time). Regard JB > Le 24 déc. 2020 à 16:36, michael e a écrit : > > > Ok thanks so is a bug ? Or i just have to change something ? (This is the > provided configuration i didn't change anythin expect fileName pattern) > > Regards, > Michael. > > De : JB Onofré > Envoyé : jeudi 24 décembre 2020 16:23 > À : user@karaf.apache.org > Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 > > Understood. I don’t have any error. The error you have seems related to the > rolling file configuration. > > Regards > JB > >>> Le 24 déc. 2020 à 15:16, michael e a écrit : >>> >> >> Ok thanks 'All log files are created and populated' for me also just then >> in the karaf i see ERROR logs >> >> Thanks, >> Regards, >> Michael. >> >> De : JB Onofré >> Envoyé : jeudi 24 décembre 2020 15:05 >> À : user@karaf.apache.org >> Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 >> >> Yeah. I tried with the karaf camel examples. All log files are created and >> populated. >> >> I will bootstrap a Windows vm to test. >> >> Regards >> JB >> >>> Le 24 déc. 2020 à 14:52, michael e a écrit : >>> >>> >>> No it is a last fresh download version ok Karaf (4.3.0) did you try with >>> camel MDC properties ? And no permission issues. >>> >>> Michael. >>> >>> De : JB Onofré >>> Envoyé : jeudi 24 décembre 2020 14:42 >>> À : user@karaf.apache.org >>> Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 >>> >>> By the way, you don’t have any permission issue ? >>> Le 24 déc. 2020 à 14:42, JB Onofré a écrit : Do you use karaf vanilla or a custom distribution ? I confirm that it works fine for me on Karaf vanilla (at least on Linux). Regards JB > Le 24 déc. 2020 à 14:02, michael e a écrit : > > > I also add the absolute path i also get exception > > my configuration: > > # Sift - MDC routing > log4j2.appender.routing.type = Routing > log4j2.appender.routing.name = Routing > log4j2.appender.routing.routes.type = Routes > log4j2.appender.routing.routes.pattern = \$\$\\\{ctx:bundle.name\} > log4j2.appender.routing.routes.bundle.type = Route > log4j2.appender.routing.routes.bundle.appender.type = > RollingRandomAccessFile > log4j2.appender.routing.routes.bundle.appender.name = > Bundle-\$\\\{ctx:bundle.name\} > log4j2.appender.routing.routes.bundle.appender.fileName = > D:/karaf/apache-karaf-4.3.0/data/log/bundle-\$\\\{ctx:camel.contextId\}.log > log4j2.appender.routing.routes.bundle.appender.filePattern = > ${karaf.log}/bundle-\$\\\{ctx:bundle.name\}.log.%i > log4j2.appender.routing.routes.bundle.appender.append = true > log4j2.appender.routing.routes.bundle.appender.layout.type = PatternLayout > log4j2.appender.routing.routes.bundle.appender.layout.pattern = > ${log4j2.pattern} > log4j2.appender.routing.routes.bundle.appender.policies.type = Policies > log4j2.appender.routing.routes.bundle.appender.policies.size.type = > SizeBasedTriggeringPolicy > log4j2.appender.routing.routes.bundle.appender.policies.size.size = 8MB > > Exception: > > org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Cannot access > RandomAccessFile java.io.IOException: La syntaxe du nom de fichier, de > répertoire ou de volume est incorrecte > org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Could not > create plugin of type class > org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender > for element RollingRandomAccessFile: java.lang.IllegalStateException: > ManagerFactory > [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$RollingRandomAccessFileManagerFactory@7ab1ab29] > unable to create manager for > [D:/karaf/apache-karaf-4.3.0/data/log/bundle-${ctx:camel.contextId}.log] > with data > [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$FactoryData@3219c6e6] > org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Unable to > invoke factory method in class > org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender > for element RollingRandomAccessFile: java.lang.IllegalStateException: No > factory method found for class > org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender > org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Unable to > create Appender of type RollingRandomAccessFile > > Regards, > Michael. > > De : Jean-Baptiste Onofre > Envoyé : jeudi 24 décembre 2020 07:13 > À : user@karaf.apache.org > Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 > > Hi, > > I just tested the
RE: Configuring MDC logging karaf 4 camel 3.7.0
Ok thanks so is a bug ? Or i just have to change something ? (This is the provided configuration i didn't change anythin expect fileName pattern) Regards, Michael. De : JB Onofré Envoyé : jeudi 24 décembre 2020 16:23 À : user@karaf.apache.org Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 Understood. I don’t have any error. The error you have seems related to the rolling file configuration. Regards JB Le 24 déc. 2020 à 15:16, michael e a écrit : Ok thanks 'All log files are created and populated' for me also just then in the karaf i see ERROR logs Thanks, Regards, Michael. De : JB Onofré Envoyé : jeudi 24 décembre 2020 15:05 À : user@karaf.apache.org Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 Yeah. I tried with the karaf camel examples. All log files are created and populated. I will bootstrap a Windows vm to test. Regards JB Le 24 déc. 2020 à 14:52, michael e a écrit : No it is a last fresh download version ok Karaf (4.3.0) did you try with camel MDC properties ? And no permission issues. Michael. De : JB Onofré Envoyé : jeudi 24 décembre 2020 14:42 À : user@karaf.apache.org Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 By the way, you don’t have any permission issue ? Le 24 déc. 2020 à 14:42, JB Onofré a écrit : Do you use karaf vanilla or a custom distribution ? I confirm that it works fine for me on Karaf vanilla (at least on Linux). Regards JB Le 24 déc. 2020 à 14:02, michael e a écrit : I also add the absolute path i also get exception my configuration: # Sift - MDC routing log4j2.appender.routing.type = Routing log4j2.appender.routing.name = Routing log4j2.appender.routing.routes.type = Routes log4j2.appender.routing.routes.pattern = \$\$\\\{ctx:bundle.name\} log4j2.appender.routing.routes.bundle.type = Route log4j2.appender.routing.routes.bundle.appender.type = RollingRandomAccessFile log4j2.appender.routing.routes.bundle.appender.name = Bundle-\$\\\{ctx:bundle.name\} log4j2.appender.routing.routes.bundle.appender.fileName = D:/karaf/apache-karaf-4.3.0/data/log/bundle-\$\\\{ctx:camel.contextId\}.log log4j2.appender.routing.routes.bundle.appender.filePattern = ${karaf.log}/bundle-\$\\\{ctx:bundle.name\}.log.%i log4j2.appender.routing.routes.bundle.appender.append = true log4j2.appender.routing.routes.bundle.appender.layout.type = PatternLayout log4j2.appender.routing.routes.bundle.appender.layout.pattern = ${log4j2.pattern} log4j2.appender.routing.routes.bundle.appender.policies.type = Policies log4j2.appender.routing.routes.bundle.appender.policies.size.type = SizeBasedTriggeringPolicy log4j2.appender.routing.routes.bundle.appender.policies.size.size = 8MB Exception: org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Cannot access RandomAccessFile java.io.IOException: La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Could not create plugin of type class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender for element RollingRandomAccessFile: java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$RollingRandomAccessFileManagerFactory@7ab1ab29] unable to create manager for [D:/karaf/apache-karaf-4.3.0/data/log/bundle-${ctx:camel.contextId}.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$FactoryData@3219c6e6] org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Unable to invoke factory method in class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender for element RollingRandomAccessFile: java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Unable to create Appender of type RollingRandomAccessFile Regards, Michael. De : Jean-Baptiste Onofre Envoyé : jeudi 24 décembre 2020 07:13 À : user@karaf.apache.org Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 Hi, I just tested the configuration I provided in etc/org.ops4j.pax.logging.cfg. Here’s my config (in etc/org.ops4j.pax.logging.cfg): First, I’ve enabled sift appender: log4j2.rootLogger.appenderRef.Sift.ref = Routing Then, I added the appender: log4j2.appender.routing.type = Routing log4j2.appender.routing.name = Routing log4j2.appender.routing.routes.type = Routes log4j2.appender.routing.routes.pattern = \$\$\\\{ctx:bundle.name\} log4j2.appender.routing.routes.bundle.type = Route log4j2.appender.routing.routes.bundle.appender.type = RollingRandomAccessFile log4j2.appender.routing.routes.bundle.appender.name = Bundle-\$\\\{ctx:bundle.name\} log4j2.appender.routing.routes.bundle.appender.fileName =
Re: Configuring MDC logging karaf 4 camel 3.7.0
Understood. I don’t have any error. The error you have seems related to the rolling file configuration. Regards JB > Le 24 déc. 2020 à 15:16, michael e a écrit : > > > Ok thanks 'All log files are created and populated' for me also just then in > the karaf i see ERROR logs > > Thanks, > Regards, > Michael. > > De : JB Onofré > Envoyé : jeudi 24 décembre 2020 15:05 > À : user@karaf.apache.org > Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 > > Yeah. I tried with the karaf camel examples. All log files are created and > populated. > > I will bootstrap a Windows vm to test. > > Regards > JB > >>> Le 24 déc. 2020 à 14:52, michael e a écrit : >>> >> >> No it is a last fresh download version ok Karaf (4.3.0) did you try with >> camel MDC properties ? And no permission issues. >> >> Michael. >> >> De : JB Onofré >> Envoyé : jeudi 24 décembre 2020 14:42 >> À : user@karaf.apache.org >> Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 >> >> By the way, you don’t have any permission issue ? >> >>> Le 24 déc. 2020 à 14:42, JB Onofré a écrit : >>> >>> >>> Do you use karaf vanilla or a custom distribution ? >>> >>> I confirm that it works fine for me on Karaf vanilla (at least on Linux). >>> >>> Regards >>> JB >>> Le 24 déc. 2020 à 14:02, michael e a écrit : I also add the absolute path i also get exception my configuration: # Sift - MDC routing log4j2.appender.routing.type = Routing log4j2.appender.routing.name = Routing log4j2.appender.routing.routes.type = Routes log4j2.appender.routing.routes.pattern = \$\$\\\{ctx:bundle.name\} log4j2.appender.routing.routes.bundle.type = Route log4j2.appender.routing.routes.bundle.appender.type = RollingRandomAccessFile log4j2.appender.routing.routes.bundle.appender.name = Bundle-\$\\\{ctx:bundle.name\} log4j2.appender.routing.routes.bundle.appender.fileName = D:/karaf/apache-karaf-4.3.0/data/log/bundle-\$\\\{ctx:camel.contextId\}.log log4j2.appender.routing.routes.bundle.appender.filePattern = ${karaf.log}/bundle-\$\\\{ctx:bundle.name\}.log.%i log4j2.appender.routing.routes.bundle.appender.append = true log4j2.appender.routing.routes.bundle.appender.layout.type = PatternLayout log4j2.appender.routing.routes.bundle.appender.layout.pattern = ${log4j2.pattern} log4j2.appender.routing.routes.bundle.appender.policies.type = Policies log4j2.appender.routing.routes.bundle.appender.policies.size.type = SizeBasedTriggeringPolicy log4j2.appender.routing.routes.bundle.appender.policies.size.size = 8MB Exception: org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Cannot access RandomAccessFile java.io.IOException: La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Could not create plugin of type class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender for element RollingRandomAccessFile: java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$RollingRandomAccessFileManagerFactory@7ab1ab29] unable to create manager for [D:/karaf/apache-karaf-4.3.0/data/log/bundle-${ctx:camel.contextId}.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$FactoryData@3219c6e6] org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Unable to invoke factory method in class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender for element RollingRandomAccessFile: java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Unable to create Appender of type RollingRandomAccessFile Regards, Michael. De : Jean-Baptiste Onofre Envoyé : jeudi 24 décembre 2020 07:13 À : user@karaf.apache.org Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 Hi, I just tested the configuration I provided in etc/org.ops4j.pax.logging.cfg. Here’s my config (in etc/org.ops4j.pax.logging.cfg): First, I’ve enabled sift appender: log4j2.rootLogger.appenderRef.Sift.ref = Routing Then, I added the appender: log4j2.appender.routing.type = Routing log4j2.appender.routing.name = Routing log4j2.appender.routing.routes.type = Routes log4j2.appender.routing.routes.pattern = \$\$\\\{ctx:bundle.name\} log4j2.appender.routing.routes.bundle.type = Route log4j2.appender.routing.routes.bundle.appender.type = RollingRandomAccessFile
RE: Configuring MDC logging karaf 4 camel 3.7.0
Ok thanks 'All log files are created and populated' for me also just then in the karaf i see ERROR logs Thanks, Regards, Michael. De : JB Onofré Envoyé : jeudi 24 décembre 2020 15:05 À : user@karaf.apache.org Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 Yeah. I tried with the karaf camel examples. All log files are created and populated. I will bootstrap a Windows vm to test. Regards JB Le 24 déc. 2020 à 14:52, michael e a écrit : No it is a last fresh download version ok Karaf (4.3.0) did you try with camel MDC properties ? And no permission issues. Michael. De : JB Onofré Envoyé : jeudi 24 décembre 2020 14:42 À : user@karaf.apache.org Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 By the way, you don’t have any permission issue ? Le 24 déc. 2020 à 14:42, JB Onofré a écrit : Do you use karaf vanilla or a custom distribution ? I confirm that it works fine for me on Karaf vanilla (at least on Linux). Regards JB Le 24 déc. 2020 à 14:02, michael e a écrit : I also add the absolute path i also get exception my configuration: # Sift - MDC routing log4j2.appender.routing.type = Routing log4j2.appender.routing.name = Routing log4j2.appender.routing.routes.type = Routes log4j2.appender.routing.routes.pattern = \$\$\\\{ctx:bundle.name\} log4j2.appender.routing.routes.bundle.type = Route log4j2.appender.routing.routes.bundle.appender.type = RollingRandomAccessFile log4j2.appender.routing.routes.bundle.appender.name = Bundle-\$\\\{ctx:bundle.name\} log4j2.appender.routing.routes.bundle.appender.fileName = D:/karaf/apache-karaf-4.3.0/data/log/bundle-\$\\\{ctx:camel.contextId\}.log log4j2.appender.routing.routes.bundle.appender.filePattern = ${karaf.log}/bundle-\$\\\{ctx:bundle.name\}.log.%i log4j2.appender.routing.routes.bundle.appender.append = true log4j2.appender.routing.routes.bundle.appender.layout.type = PatternLayout log4j2.appender.routing.routes.bundle.appender.layout.pattern = ${log4j2.pattern} log4j2.appender.routing.routes.bundle.appender.policies.type = Policies log4j2.appender.routing.routes.bundle.appender.policies.size.type = SizeBasedTriggeringPolicy log4j2.appender.routing.routes.bundle.appender.policies.size.size = 8MB Exception: org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Cannot access RandomAccessFile java.io.IOException: La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Could not create plugin of type class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender for element RollingRandomAccessFile: java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$RollingRandomAccessFileManagerFactory@7ab1ab29] unable to create manager for [D:/karaf/apache-karaf-4.3.0/data/log/bundle-${ctx:camel.contextId}.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$FactoryData@3219c6e6] org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Unable to invoke factory method in class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender for element RollingRandomAccessFile: java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Unable to create Appender of type RollingRandomAccessFile Regards, Michael. De : Jean-Baptiste Onofre Envoyé : jeudi 24 décembre 2020 07:13 À : user@karaf.apache.org Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 Hi, I just tested the configuration I provided in etc/org.ops4j.pax.logging.cfg. Here’s my config (in etc/org.ops4j.pax.logging.cfg): First, I’ve enabled sift appender: log4j2.rootLogger.appenderRef.Sift.ref = Routing Then, I added the appender: log4j2.appender.routing.type = Routing log4j2.appender.routing.name = Routing log4j2.appender.routing.routes.type = Routes log4j2.appender.routing.routes.pattern = \$\$\\\{ctx:bundle.name\} log4j2.appender.routing.routes.bundle.type = Route log4j2.appender.routing.routes.bundle.appender.type = RollingRandomAccessFile log4j2.appender.routing.routes.bundle.appender.name = Bundle-\$\\\{ctx:bundle.name\} log4j2.appender.routing.routes.bundle.appender.fileName = ${karaf.log}/bundle-\$\\\{ctx:bundle.name\}.log log4j2.appender.routing.routes.bundle.appender.filePattern = ${karaf.log}/bundle-\$\\\{ctx:bundle.name\}.log.%i log4j2.appender.routing.routes.bundle.appender.append = true log4j2.appender.routing.routes.bundle.appender.layout.type = PatternLayout log4j2.appender.routing.routes.bundle.appender.layout.pattern = ${log4j2.pattern} log4j2.appender.routing.routes.bundle.appender.policies.type = Policies log4j2.appender.routing.routes.bundle.appender.policies.size.type =
Re: Configuring MDC logging karaf 4 camel 3.7.0
Yeah. I tried with the karaf camel examples. All log files are created and populated. I will bootstrap a Windows vm to test. Regards JB > Le 24 déc. 2020 à 14:52, michael e a écrit : > > > No it is a last fresh download version ok Karaf (4.3.0) did you try with > camel MDC properties ? And no permission issues. > > Michael. > > De : JB Onofré > Envoyé : jeudi 24 décembre 2020 14:42 > À : user@karaf.apache.org > Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 > > By the way, you don’t have any permission issue ? > >>> Le 24 déc. 2020 à 14:42, JB Onofré a écrit : >>> >> >> Do you use karaf vanilla or a custom distribution ? >> >> I confirm that it works fine for me on Karaf vanilla (at least on Linux). >> >> Regards >> JB >> >>> Le 24 déc. 2020 à 14:02, michael e a écrit : >>> >>> >>> I also add the absolute path i also get exception >>> >>> my configuration: >>> >>> # Sift - MDC routing >>> log4j2.appender.routing.type = Routing >>> log4j2.appender.routing.name = Routing >>> log4j2.appender.routing.routes.type = Routes >>> log4j2.appender.routing.routes.pattern = \$\$\\\{ctx:bundle.name\} >>> log4j2.appender.routing.routes.bundle.type = Route >>> log4j2.appender.routing.routes.bundle.appender.type = >>> RollingRandomAccessFile >>> log4j2.appender.routing.routes.bundle.appender.name = >>> Bundle-\$\\\{ctx:bundle.name\} >>> log4j2.appender.routing.routes.bundle.appender.fileName = >>> D:/karaf/apache-karaf-4.3.0/data/log/bundle-\$\\\{ctx:camel.contextId\}.log >>> log4j2.appender.routing.routes.bundle.appender.filePattern = >>> ${karaf.log}/bundle-\$\\\{ctx:bundle.name\}.log.%i >>> log4j2.appender.routing.routes.bundle.appender.append = true >>> log4j2.appender.routing.routes.bundle.appender.layout.type = PatternLayout >>> log4j2.appender.routing.routes.bundle.appender.layout.pattern = >>> ${log4j2.pattern} >>> log4j2.appender.routing.routes.bundle.appender.policies.type = Policies >>> log4j2.appender.routing.routes.bundle.appender.policies.size.type = >>> SizeBasedTriggeringPolicy >>> log4j2.appender.routing.routes.bundle.appender.policies.size.size = 8MB >>> >>> Exception: >>> >>> org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Cannot access >>> RandomAccessFile java.io.IOException: La syntaxe du nom de fichier, de >>> répertoire ou de volume est incorrecte >>> org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Could not create >>> plugin of type class >>> org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender for >>> element RollingRandomAccessFile: java.lang.IllegalStateException: >>> ManagerFactory >>> [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$RollingRandomAccessFileManagerFactory@7ab1ab29] >>> unable to create manager for >>> [D:/karaf/apache-karaf-4.3.0/data/log/bundle-${ctx:camel.contextId}.log] >>> with data >>> [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$FactoryData@3219c6e6] >>> org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Unable to invoke >>> factory method in class >>> org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender for >>> element RollingRandomAccessFile: java.lang.IllegalStateException: No >>> factory method found for class >>> org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender >>> org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Unable to create >>> Appender of type RollingRandomAccessFile >>> >>> Regards, >>> Michael. >>> >>> De : Jean-Baptiste Onofre >>> Envoyé : jeudi 24 décembre 2020 07:13 >>> À : user@karaf.apache.org >>> Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 >>> >>> Hi, >>> >>> I just tested the configuration I provided in etc/org.ops4j.pax.logging.cfg. >>> >>> Here’s my config (in etc/org.ops4j.pax.logging.cfg): >>> >>> First, I’ve enabled sift appender: >>> >>> log4j2.rootLogger.appenderRef.Sift.ref = Routing >>> >>> Then, I added the appender: >>> >>> log4j2.appender.routing.type = Routing >>> log4j2.appender.routing.name = Routing >>> log4j2.appender.routing.routes.type = Routes >>> log4j2.appender.routing.routes.pattern = \$\$\\\{ctx:bundle.name\} >>> log4j2.appender.routing.routes.bundle.type = Route >>> log4j2.appender.routing.routes.bundle.appender.type = >>> RollingRandomAccessFile >>> log4j2.appender.routing.routes.bundle.appender.name = >>> Bundle-\$\\\{ctx:bundle.name\} >>> log4j2.appender.routing.routes.bundle.appender.fileName = >>> ${karaf.log}/bundle-\$\\\{ctx:bundle.name\}.log >>> log4j2.appender.routing.routes.bundle.appender.filePattern = >>> ${karaf.log}/bundle-\$\\\{ctx:bundle.name\}.log.%i >>> log4j2.appender.routing.routes.bundle.appender.append = true >>> log4j2.appender.routing.routes.bundle.appender.layout.type = PatternLayout >>> log4j2.appender.routing.routes.bundle.appender.layout.pattern = >>> ${log4j2.pattern} >>> log4j2.appender.routing.routes.bundle.appender.policies.type = Policies >>>
RE: Configuring MDC logging karaf 4 camel 3.7.0
No it is a last fresh download version ok Karaf (4.3.0) did you try with camel MDC properties ? And no permission issues. Michael. De : JB Onofré Envoyé : jeudi 24 décembre 2020 14:42 À : user@karaf.apache.org Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 By the way, you don’t have any permission issue ? Le 24 déc. 2020 à 14:42, JB Onofré a écrit : Do you use karaf vanilla or a custom distribution ? I confirm that it works fine for me on Karaf vanilla (at least on Linux). Regards JB Le 24 déc. 2020 à 14:02, michael e a écrit : I also add the absolute path i also get exception my configuration: # Sift - MDC routing log4j2.appender.routing.type = Routing log4j2.appender.routing.name = Routing log4j2.appender.routing.routes.type = Routes log4j2.appender.routing.routes.pattern = \$\$\\\{ctx:bundle.name\} log4j2.appender.routing.routes.bundle.type = Route log4j2.appender.routing.routes.bundle.appender.type = RollingRandomAccessFile log4j2.appender.routing.routes.bundle.appender.name = Bundle-\$\\\{ctx:bundle.name\} log4j2.appender.routing.routes.bundle.appender.fileName = D:/karaf/apache-karaf-4.3.0/data/log/bundle-\$\\\{ctx:camel.contextId\}.log log4j2.appender.routing.routes.bundle.appender.filePattern = ${karaf.log}/bundle-\$\\\{ctx:bundle.name\}.log.%i log4j2.appender.routing.routes.bundle.appender.append = true log4j2.appender.routing.routes.bundle.appender.layout.type = PatternLayout log4j2.appender.routing.routes.bundle.appender.layout.pattern = ${log4j2.pattern} log4j2.appender.routing.routes.bundle.appender.policies.type = Policies log4j2.appender.routing.routes.bundle.appender.policies.size.type = SizeBasedTriggeringPolicy log4j2.appender.routing.routes.bundle.appender.policies.size.size = 8MB Exception: org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Cannot access RandomAccessFile java.io.IOException: La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Could not create plugin of type class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender for element RollingRandomAccessFile: java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$RollingRandomAccessFileManagerFactory@7ab1ab29] unable to create manager for [D:/karaf/apache-karaf-4.3.0/data/log/bundle-${ctx:camel.contextId}.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$FactoryData@3219c6e6] org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Unable to invoke factory method in class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender for element RollingRandomAccessFile: java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Unable to create Appender of type RollingRandomAccessFile Regards, Michael. De : Jean-Baptiste Onofre Envoyé : jeudi 24 décembre 2020 07:13 À : user@karaf.apache.org Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 Hi, I just tested the configuration I provided in etc/org.ops4j.pax.logging.cfg. Here’s my config (in etc/org.ops4j.pax.logging.cfg): First, I’ve enabled sift appender: log4j2.rootLogger.appenderRef.Sift.ref = Routing Then, I added the appender: log4j2.appender.routing.type = Routing log4j2.appender.routing.name = Routing log4j2.appender.routing.routes.type = Routes log4j2.appender.routing.routes.pattern = \$\$\\\{ctx:bundle.name\} log4j2.appender.routing.routes.bundle.type = Route log4j2.appender.routing.routes.bundle.appender.type = RollingRandomAccessFile log4j2.appender.routing.routes.bundle.appender.name = Bundle-\$\\\{ctx:bundle.name\} log4j2.appender.routing.routes.bundle.appender.fileName = ${karaf.log}/bundle-\$\\\{ctx:bundle.name\}.log log4j2.appender.routing.routes.bundle.appender.filePattern = ${karaf.log}/bundle-\$\\\{ctx:bundle.name\}.log.%i log4j2.appender.routing.routes.bundle.appender.append = true log4j2.appender.routing.routes.bundle.appender.layout.type = PatternLayout log4j2.appender.routing.routes.bundle.appender.layout.pattern = ${log4j2.pattern} log4j2.appender.routing.routes.bundle.appender.policies.type = Policies log4j2.appender.routing.routes.bundle.appender.policies.size.type = SizeBasedTriggeringPolicy log4j2.appender.routing.routes.bundle.appender.policies.size.size = 8MB And it works fine. It seems that your problem is about Windows. You are mixing windows style path with Unix style. For fileName and filePattern, can you please use absolution path. Something like: log4j2.appender.routing.routes.bundle.appender.fileName = D:\karaf\apache-karaf-4.3.0\bundle-\$\\\{ctx:bundle.name\}.log It should work. Regards JB Le 23 déc. 2020 à 10:58, michael e
Re: Configuring MDC logging karaf 4 camel 3.7.0
By the way, you don’t have any permission issue ? > Le 24 déc. 2020 à 14:42, JB Onofré a écrit : > > > Do you use karaf vanilla or a custom distribution ? > > I confirm that it works fine for me on Karaf vanilla (at least on Linux). > > Regards > JB > >>> Le 24 déc. 2020 à 14:02, michael e a écrit : >>> >> >> I also add the absolute path i also get exception >> >> my configuration: >> >> # Sift - MDC routing >> log4j2.appender.routing.type = Routing >> log4j2.appender.routing.name = Routing >> log4j2.appender.routing.routes.type = Routes >> log4j2.appender.routing.routes.pattern = \$\$\\\{ctx:bundle.name\} >> log4j2.appender.routing.routes.bundle.type = Route >> log4j2.appender.routing.routes.bundle.appender.type = RollingRandomAccessFile >> log4j2.appender.routing.routes.bundle.appender.name = >> Bundle-\$\\\{ctx:bundle.name\} >> log4j2.appender.routing.routes.bundle.appender.fileName = >> D:/karaf/apache-karaf-4.3.0/data/log/bundle-\$\\\{ctx:camel.contextId\}.log >> log4j2.appender.routing.routes.bundle.appender.filePattern = >> ${karaf.log}/bundle-\$\\\{ctx:bundle.name\}.log.%i >> log4j2.appender.routing.routes.bundle.appender.append = true >> log4j2.appender.routing.routes.bundle.appender.layout.type = PatternLayout >> log4j2.appender.routing.routes.bundle.appender.layout.pattern = >> ${log4j2.pattern} >> log4j2.appender.routing.routes.bundle.appender.policies.type = Policies >> log4j2.appender.routing.routes.bundle.appender.policies.size.type = >> SizeBasedTriggeringPolicy >> log4j2.appender.routing.routes.bundle.appender.policies.size.size = 8MB >> >> Exception: >> >> org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Cannot access >> RandomAccessFile java.io.IOException: La syntaxe du nom de fichier, de >> répertoire ou de volume est incorrecte >> org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Could not create >> plugin of type class >> org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender for >> element RollingRandomAccessFile: java.lang.IllegalStateException: >> ManagerFactory >> [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$RollingRandomAccessFileManagerFactory@7ab1ab29] >> unable to create manager for >> [D:/karaf/apache-karaf-4.3.0/data/log/bundle-${ctx:camel.contextId}.log] >> with data >> [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$FactoryData@3219c6e6] >> org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Unable to invoke >> factory method in class >> org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender for >> element RollingRandomAccessFile: java.lang.IllegalStateException: No factory >> method found for class >> org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender >> org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Unable to create >> Appender of type RollingRandomAccessFile >> >> Regards, >> Michael. >> >> De : Jean-Baptiste Onofre >> Envoyé : jeudi 24 décembre 2020 07:13 >> À : user@karaf.apache.org >> Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 >> >> Hi, >> >> I just tested the configuration I provided in etc/org.ops4j.pax.logging.cfg. >> >> Here’s my config (in etc/org.ops4j.pax.logging.cfg): >> >> First, I’ve enabled sift appender: >> >> log4j2.rootLogger.appenderRef.Sift.ref = Routing >> >> Then, I added the appender: >> >> log4j2.appender.routing.type = Routing >> log4j2.appender.routing.name = Routing >> log4j2.appender.routing.routes.type = Routes >> log4j2.appender.routing.routes.pattern = \$\$\\\{ctx:bundle.name\} >> log4j2.appender.routing.routes.bundle.type = Route >> log4j2.appender.routing.routes.bundle.appender.type = RollingRandomAccessFile >> log4j2.appender.routing.routes.bundle.appender.name = >> Bundle-\$\\\{ctx:bundle.name\} >> log4j2.appender.routing.routes.bundle.appender.fileName = >> ${karaf.log}/bundle-\$\\\{ctx:bundle.name\}.log >> log4j2.appender.routing.routes.bundle.appender.filePattern = >> ${karaf.log}/bundle-\$\\\{ctx:bundle.name\}.log.%i >> log4j2.appender.routing.routes.bundle.appender.append = true >> log4j2.appender.routing.routes.bundle.appender.layout.type = PatternLayout >> log4j2.appender.routing.routes.bundle.appender.layout.pattern = >> ${log4j2.pattern} >> log4j2.appender.routing.routes.bundle.appender.policies.type = Policies >> log4j2.appender.routing.routes.bundle.appender.policies.size.type = >> SizeBasedTriggeringPolicy >> log4j2.appender.routing.routes.bundle.appender.policies.size.size = 8MB >> >> And it works fine. >> >> It seems that your problem is about Windows. >> You are mixing windows style path with Unix style. >> >> For fileName and filePattern, can you please use absolution path. Something >> like: >> >> log4j2.appender.routing.routes.bundle.appender.fileName = >> D:\karaf\apache-karaf-4.3.0\bundle-\$\\\{ctx:bundle.name\}.log >> >> It should work. >> >> Regards >> JB >> >>> Le 23 déc. 2020 à 10:58,
Re: Configuring MDC logging karaf 4 camel 3.7.0
Do you use karaf vanilla or a custom distribution ? I confirm that it works fine for me on Karaf vanilla (at least on Linux). Regards JB > Le 24 déc. 2020 à 14:02, michael e a écrit : > > > I also add the absolute path i also get exception > > my configuration: > > # Sift - MDC routing > log4j2.appender.routing.type = Routing > log4j2.appender.routing.name = Routing > log4j2.appender.routing.routes.type = Routes > log4j2.appender.routing.routes.pattern = \$\$\\\{ctx:bundle.name\} > log4j2.appender.routing.routes.bundle.type = Route > log4j2.appender.routing.routes.bundle.appender.type = RollingRandomAccessFile > log4j2.appender.routing.routes.bundle.appender.name = > Bundle-\$\\\{ctx:bundle.name\} > log4j2.appender.routing.routes.bundle.appender.fileName = > D:/karaf/apache-karaf-4.3.0/data/log/bundle-\$\\\{ctx:camel.contextId\}.log > log4j2.appender.routing.routes.bundle.appender.filePattern = > ${karaf.log}/bundle-\$\\\{ctx:bundle.name\}.log.%i > log4j2.appender.routing.routes.bundle.appender.append = true > log4j2.appender.routing.routes.bundle.appender.layout.type = PatternLayout > log4j2.appender.routing.routes.bundle.appender.layout.pattern = > ${log4j2.pattern} > log4j2.appender.routing.routes.bundle.appender.policies.type = Policies > log4j2.appender.routing.routes.bundle.appender.policies.size.type = > SizeBasedTriggeringPolicy > log4j2.appender.routing.routes.bundle.appender.policies.size.size = 8MB > > Exception: > > org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Cannot access > RandomAccessFile java.io.IOException: La syntaxe du nom de fichier, de > répertoire ou de volume est incorrecte > org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Could not create > plugin of type class > org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender for > element RollingRandomAccessFile: java.lang.IllegalStateException: > ManagerFactory > [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$RollingRandomAccessFileManagerFactory@7ab1ab29] > unable to create manager for > [D:/karaf/apache-karaf-4.3.0/data/log/bundle-${ctx:camel.contextId}.log] with > data > [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$FactoryData@3219c6e6] > org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Unable to invoke > factory method in class > org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender for > element RollingRandomAccessFile: java.lang.IllegalStateException: No factory > method found for class > org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender > org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Unable to create > Appender of type RollingRandomAccessFile > > Regards, > Michael. > > De : Jean-Baptiste Onofre > Envoyé : jeudi 24 décembre 2020 07:13 > À : user@karaf.apache.org > Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 > > Hi, > > I just tested the configuration I provided in etc/org.ops4j.pax.logging.cfg. > > Here’s my config (in etc/org.ops4j.pax.logging.cfg): > > First, I’ve enabled sift appender: > > log4j2.rootLogger.appenderRef.Sift.ref = Routing > > Then, I added the appender: > > log4j2.appender.routing.type = Routing > log4j2.appender.routing.name = Routing > log4j2.appender.routing.routes.type = Routes > log4j2.appender.routing.routes.pattern = \$\$\\\{ctx:bundle.name\} > log4j2.appender.routing.routes.bundle.type = Route > log4j2.appender.routing.routes.bundle.appender.type = RollingRandomAccessFile > log4j2.appender.routing.routes.bundle.appender.name = > Bundle-\$\\\{ctx:bundle.name\} > log4j2.appender.routing.routes.bundle.appender.fileName = > ${karaf.log}/bundle-\$\\\{ctx:bundle.name\}.log > log4j2.appender.routing.routes.bundle.appender.filePattern = > ${karaf.log}/bundle-\$\\\{ctx:bundle.name\}.log.%i > log4j2.appender.routing.routes.bundle.appender.append = true > log4j2.appender.routing.routes.bundle.appender.layout.type = PatternLayout > log4j2.appender.routing.routes.bundle.appender.layout.pattern = > ${log4j2.pattern} > log4j2.appender.routing.routes.bundle.appender.policies.type = Policies > log4j2.appender.routing.routes.bundle.appender.policies.size.type = > SizeBasedTriggeringPolicy > log4j2.appender.routing.routes.bundle.appender.policies.size.size = 8MB > > And it works fine. > > It seems that your problem is about Windows. > You are mixing windows style path with Unix style. > > For fileName and filePattern, can you please use absolution path. Something > like: > > log4j2.appender.routing.routes.bundle.appender.fileName = > D:\karaf\apache-karaf-4.3.0\bundle-\$\\\{ctx:bundle.name\}.log > > It should work. > > Regards > JB > >> Le 23 déc. 2020 à 10:58, michael e a écrit : >> >> Hello, >> >> I'm getting in trouble trying to configure MDC logging with latest Karaf and >> Camel Version >> >> Here my logging configuration >> >> log4j2.appender.routing.type = Routing >>
RE: Configuring MDC logging karaf 4 camel 3.7.0
I also add the absolute path i also get exception my configuration: # Sift - MDC routing log4j2.appender.routing.type = Routing log4j2.appender.routing.name = Routing log4j2.appender.routing.routes.type = Routes log4j2.appender.routing.routes.pattern = \$\$\\\{ctx:bundle.name\} log4j2.appender.routing.routes.bundle.type = Route log4j2.appender.routing.routes.bundle.appender.type = RollingRandomAccessFile log4j2.appender.routing.routes.bundle.appender.name = Bundle-\$\\\{ctx:bundle.name\} log4j2.appender.routing.routes.bundle.appender.fileName = D:/karaf/apache-karaf-4.3.0/data/log/bundle-\$\\\{ctx:camel.contextId\}.log log4j2.appender.routing.routes.bundle.appender.filePattern = ${karaf.log}/bundle-\$\\\{ctx:bundle.name\}.log.%i log4j2.appender.routing.routes.bundle.appender.append = true log4j2.appender.routing.routes.bundle.appender.layout.type = PatternLayout log4j2.appender.routing.routes.bundle.appender.layout.pattern = ${log4j2.pattern} log4j2.appender.routing.routes.bundle.appender.policies.type = Policies log4j2.appender.routing.routes.bundle.appender.policies.size.type = SizeBasedTriggeringPolicy log4j2.appender.routing.routes.bundle.appender.policies.size.size = 8MB Exception: org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Cannot access RandomAccessFile java.io.IOException: La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Could not create plugin of type class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender for element RollingRandomAccessFile: java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$RollingRandomAccessFileManagerFactory@7ab1ab29] unable to create manager for [D:/karaf/apache-karaf-4.3.0/data/log/bundle-${ctx:camel.contextId}.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager$FactoryData@3219c6e6] org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Unable to invoke factory method in class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender for element RollingRandomAccessFile: java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender org.ops4j.pax.logging.pax-logging-log4j2 [log4j2] ERROR : Unable to create Appender of type RollingRandomAccessFile Regards, Michael. De : Jean-Baptiste Onofre Envoyé : jeudi 24 décembre 2020 07:13 À : user@karaf.apache.org Objet : Re: Configuring MDC logging karaf 4 camel 3.7.0 Hi, I just tested the configuration I provided in etc/org.ops4j.pax.logging.cfg. Here’s my config (in etc/org.ops4j.pax.logging.cfg): First, I’ve enabled sift appender: log4j2.rootLogger.appenderRef.Sift.ref = Routing Then, I added the appender: log4j2.appender.routing.type = Routing log4j2.appender.routing.name = Routing log4j2.appender.routing.routes.type = Routes log4j2.appender.routing.routes.pattern = \$\$\\\{ctx:bundle.name\} log4j2.appender.routing.routes.bundle.type = Route log4j2.appender.routing.routes.bundle.appender.type = RollingRandomAccessFile log4j2.appender.routing.routes.bundle.appender.name = Bundle-\$\\\{ctx:bundle.name\} log4j2.appender.routing.routes.bundle.appender.fileName = ${karaf.log}/bundle-\$\\\{ctx:bundle.name\}.log log4j2.appender.routing.routes.bundle.appender.filePattern = ${karaf.log}/bundle-\$\\\{ctx:bundle.name\}.log.%i log4j2.appender.routing.routes.bundle.appender.append = true log4j2.appender.routing.routes.bundle.appender.layout.type = PatternLayout log4j2.appender.routing.routes.bundle.appender.layout.pattern = ${log4j2.pattern} log4j2.appender.routing.routes.bundle.appender.policies.type = Policies log4j2.appender.routing.routes.bundle.appender.policies.size.type = SizeBasedTriggeringPolicy log4j2.appender.routing.routes.bundle.appender.policies.size.size = 8MB And it works fine. It seems that your problem is about Windows. You are mixing windows style path with Unix style. For fileName and filePattern, can you please use absolution path. Something like: log4j2.appender.routing.routes.bundle.appender.fileName = D:\karaf\apache-karaf-4.3.0\bundle-\$\\\{ctx:bundle.name\}.log It should work. Regards JB Le 23 déc. 2020 à 10:58, michael e mailto:michaelel...@outlook.fr>> a écrit : Hello, I'm getting in trouble trying to configure MDC logging with latest Karaf and Camel Version Here my logging configuration log4j2.appender.routing.type = Routing log4j2.appender.routing.name = Routing log4j2.appender.routing.routes.type = Routes log4j2.appender.routing.routes.pattern = \$\$\\\{ctx:bundle.name\} log4j2.appender.routing.routes.bundle.type = Route log4j2.appender.routing.routes.bundle.appender.type = RollingRandomAccessFile log4j2.appender.routing.routes.bundle.appender.name = Bundle-\$\\\{ctx:bundle.name\}
Announce: Weekly allowance app on karaf
If your kids to chores around the house and get paid for it, and you need a way to track chores and payments, this is the webapp for you. Open Source (APLv2) and free. https://twitter.com/steinarba/status/1342021311896416262?s=20 Runs on ApacheKaraf and PostgreSQL. PS if I get actual users other than myself, I'll make releases to maven central, instead of just using the latest snapshot from my own maven repo (which is what I currently do) PPS This is the first i18n/i11n version, supporting the locales nb_NO and en_GB. I'll take pull requests for other locales, but if you decide to make one, please make the PR against the using-react branch. This is the unstyled react branch, and I make all changes not releated to bootstrap styling there, and merge that into work/using-react-with-bootstrap4, which in turned is merged into master