[jboss-jira] [JBoss JIRA] (AS7-2265) multi-line log output makes munging logs difficult

Carlo de Wolf (Commented) (JIRA) jira-events at lists.jboss.org
Tue Nov 1 08:21:45 EDT 2011


    [ https://issues.jboss.org/browse/AS7-2265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638777#comment-12638777 ] 

Carlo de Wolf commented on AS7-2265:
------------------------------------

Using a proper expression should work as well:
{noformat}
#!/usr/bin/gawk -f
BEGIN {
   # Note: interval expressions are only supported by gawk 4+
   RS="\n?^[0-9][0-9]:[0-9][0-9]:[0-9][0-9],[0-9][0-9][0-9]"
}
{
   print "Record: " $0;
   print "Next time: " RT;
}
{noformat}
                
> multi-line log output makes munging logs difficult
> --------------------------------------------------
>
>                 Key: AS7-2265
>                 URL: https://issues.jboss.org/browse/AS7-2265
>             Project: Application Server 7
>          Issue Type: Enhancement
>          Components: EJB
>    Affects Versions: 7.1.0.Alpha1
>         Environment: jboss-as-7.1.0.Alpha2-SNAPSHOT, java-1.6.0-openjdk, Fedora 14
>            Reporter: Rich Lucente
>            Assignee: Carlo de Wolf
>            Priority: Minor
>              Labels: eap6-ux
>             Fix For: Open To Community
>
>
> Multi-line log entry, as shown below, complicates use of scripts to munge the log.
> 15:50:30,986 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-4) JNDI bindings for session bean named MemberRegistration in deployment unit subdeployment "multi-ejb-0.0.1-SNAPSHOT.jar" of deployment "multi-ear.ear" are as follows:
> 	java:global/multi-ear/multi-ejb-0.0.1-SNAPSHOT/MemberRegistration!org.jboss.as.quickstarts.example.qs.controller.MemberRegistration
> 	java:app/multi-ejb-0.0.1-SNAPSHOT/MemberRegistration!org.jboss.as.quickstarts.example.qs.controller.MemberRegistration
> 	java:module/MemberRegistration!org.jboss.as.quickstarts.example.qs.controller.MemberRegistration
> 	java:global/multi-ear/multi-ejb-0.0.1-SNAPSHOT/MemberRegistration
> 	java:app/multi-ejb-0.0.1-SNAPSHOT/MemberRegistration
> 	java:module/MemberRegistration
> 15:50:30,991 INFO  [org.jboss.weld] (MSC service thread 1-5) Starting Services for CDI deployment: multi-ear.ear

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list