Unlock instant, AI-driven research and patent intelligence for your innovation.

A log service processing method and device

A technology for service processing and logging, applied in the field of log services, which can solve problems such as inability to use Java applications

Active Publication Date: 2016-08-24
山东中创软件商用中间件股份有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Other common log services such as java.util.logging, simpleLogger, log4j, etc. cannot run into OSGi, so they cannot be used by OSGi-based Java applications.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A log service processing method and device
  • A log service processing method and device
  • A log service processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051]The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0052] This application provides a log service processing method. First, after the component is started, the context object of the component is transferred to the factory of the non-public service platform OSGi type log, and secondly, the context object of the component is saved to the factory of the non-OSGi type log. factory, and then determine whether the log service corresponding to the factory of the non-OSGi type log has been registered as an OSGi type log service, and return th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a log service processing method and a log service processing device. The log service processing method comprises the steps: sending a context object of an assembly to a non-public service platform open service gateway initiative (OSGi) type log factory after the assembly starts to work; storing the context object of the assembly in the non-OSGi type log factory; judging whether a corresponding log service of the non-OSGi type log factory is registered as an OSGi type log service or not; returning to the OSGi log service when the corresponding log service of the non-OSGi type log factory is registered; and registering the log service as the OSGi type log service when the corresponding log service of the non-OSGi type log factory is not registered. Consequently, by means of the log service processing method and the log service processing device, polytype log services are integrated, and the requirements of choosing a suitable log service and using the suitable log service according to user demands through different Java application programs based on the OSGi after the polytype log services are integrated are met.

Description

technical field [0001] The present invention relates to the technical field of log service, in particular to a log service processing method and device. Background technique [0002] OSGi (public service platform, open Service Gateway Initiative) is a Java-based service specification, which is formulated for those systems that need to run for a long time, update dynamically and have as little impact on the operating environment as possible. And, OSGi provides services to Java that make Java the environment of choice for software integration and software development. Among them, the OSGi Alliance has developed standard component interfaces for many public functions such as logging and security. [0003] The current log service only has SLF4J as a log plug-in that can run into OSGi. OSGi-based Java applications can use this logging service. [0004] However, other common log services such as java.util.logging, simpleLogger, log4j, etc. cannot run into OSGi, so they cannot b...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/24
Inventor 张权刘鹏尚秀颖李峰张青
Owner 山东中创软件商用中间件股份有限公司