ACS Logging System APIs: C++ Bogdan Jeram European Southern Observatory July 2004NRAO.

Slides:



Advertisements
Similar presentations
Chapter 6 Server-side Programming: Java Servlets
Advertisements

1 1999/Ph 514: Channel Access Concepts EPICS Channel Access Concepts Bob Dalesio LANL.
Java IDL Callback Object. interface Listener { void message(in string msg); }; interface MessageServer { void register(in Listener lt); };
Tokyo July, 2005 Deployment of ACS components Bogdan Jeram European Southern Observatory.
15-May-15 RMI Remote Method Invocation. 2 “The network is the computer” Consider the following program organization: If the network is the computer, we.
NRAO/ESO videocon, Feb.12, 2004 ACS ALMA Common software G.Chiozzi and the ACS team.
MC365 Application Servers: Servlets. Today We Will Cover: What a servlet is The HTTPServlet and some of its more important methods How to configure the.
Presented by IBM developer Works ibm.com/developerworks/ 2006 January – April © 2006 IBM Corporation. Making the most of Creating Eclipse plug-ins.
ACS Logging System Concepts and Example H.Sommer (Restructured, based on slides from previous years) UTFSM Valparaiso, Chile, Nov ACS Logging System.
Container-component model and XML in ALMA ACS Heiko Sommer (ESO), Gianluca Chiozzi (ESO), Klemen Zagar (Cosylab) and Markus Völter.
An Improved Approach to Generating Configuration Files from a Database Jon Finke Rensselaer Polytechnic Institute.
The ALMA Common Software: a developer friendly CORBA-based framework G.Chiozzi d, B.Jeram a, H.Sommer a, A.Caproni e, M.Pesko bc, M.Sekoranja b, K.Zagar.
Module 14: WCF Send Adapters. Overview Lesson 1: Introduction to WCF Send Adapters Lesson 2: Consuming a Web Service Lesson 3: Consuming Services from.
Workshop in ALMA Logs Prepared by Juan Pablo Gil – Arturo Hoffstadt
ACS Error System Using it in JAVA Sohaila Lucero NRAO.
Integrating the CERN laser alarm system with the ALMA common Software SPIE, Orlando, May 2006 Integrating the CERN LASER Alarm System with the ALMA Common.
LogBox Enterprise Logging Brad Wood
Tokyo July, 2005 ACS Characteristic Components B. Jeram, …..
ALMA Common Software Basic Track Component implementation guidelines.
Jan Hatje, DESY CSS ITER March 2009: Technology and Interfaces XFEL The European X-Ray Laser Project X-Ray Free-Electron Laser 1 CSS – Control.
Garching January, 2007 Configuration Database and Deployment of ACS components Bogdan Jeram, changes by Heiko Sommer European Southern.
Wir schaffen Wissen – heute für morgen Gateway (Redux) PSI - GFA Controls IT Alain Bertrand Renata Krempaska, Hubert Lutz, Matteo Provenzano, Dirk Zimoch.
ICALEPCS Archamp 08 – 09 October, 2005 ACS Alarm system prototype Alessandro Caproni.
1 Channel Access Concepts – EPICS Training – K.Furukawa – Mar EPICS Channel Access Concepts Kazuro Furukawa, KEK, ( ) (Bob Dalesio, LANL,
ALMA Common Software Basic Track Logging and Error Systems.
ACS Error System APIs: C++ Bogdan Jeram European Southern Observatory July 2005ESO.
Plug-In Architecture Pattern. Problem The functionality of a system needs to be extended after the software is shipped The set of possible post-shipment.
RMI Remote Method Invocation Distributed Object-based System and RPC Together 2-Jun-16.
AtacamaLargeMillimeterArray ACS Training Notification Channels (last updated by Heiko Sommer, Nov. 2009)
CORBA Details Three Tier Architecture CORBA API Holders and Helpers COS Naming and Naming Contexts Transient and Persistent Objects Properties Callbacks.
The TANGO Events zDefinition of an event zAPI for events zArchitecture of events zStatus of events.
ACS Component Simulator J. Ibsen European Southern Observatory Garching – January 2007ESO.
Visualizing DIET and JuxMem Mathieu Jan PARIS Research Group IRISA INRIA & ENS Cachan / Brittany Extension Rennes Lyon, July 2004.
ALMA Common Software Basic Track A walk through ACS functionality.
Running ACS Bogdan Jeram European Southern Observatory July 2005NAOJ.
ICALEPCS’ GenevaACS in ALMA1 Allen Farris National Radio Astronomy Observatory Lead, ALMA Control System.
ESO - Garching 23 June – 02 July, 2003 ACS Course Transparent XML De-/Serialization in Java H. Sommer.
Writing a Channel Access Client in EPICS Bob Dalesio, April 5, 2000.
The TANGO Logging Service Status Implementation details Possible enhancements.
Chapter 36 More Object Design with GoF Patterns 1CS6359 Fall 2011 John Cole.
Meta-Server System Software Lab. Overview In the Music Virtual Channel system, clients can’t query for a song initiatively Through the metadata server,
Tokyo July, 2005 Introduction to ACE Bogdan Jeram European Southern Observatory.
ICALEPCS 2005 Geneva, Oct. 12 The ALMA Telescope Control SystemA. Farris The ALMA Telescope Control System Allen Farris Ralph Marson Jeff Kern National.
Jan Hatje, DESY CSS GSI Feb. 2009: Technology and Interfaces XFEL The European X-Ray Laser Project X-Ray Free-Electron Laser 1 CSS – Control.
NAOJ, Tokyo – July 04-08, 2005 ACS Configuration Database Bogdan Jeram European Southern Observatory.
ICALEPCS Archamp 08 – 09 October, 2005 ACS Configuration Database G.Chiozzi, B.Jeram European Southern Observatory.
AtacamaLargeMillimeterArray ACS Training Using the Python Error System.
©2001 Priority Technologies, Inc. All Rights Reserved Meteor Status Miami Face to Face Meeting January 16 – 18, 2002.
1 Channel Access Concepts – IHEP EPICS Training – K.F – Aug EPICS Channel Access Concepts Kazuro Furukawa, KEK (Bob Dalesio, LANL)
Testing, Monitoring, and Controlling CORBA-based Applications Sudipto Ghosh Priya Govindarajan Aditya P. Mathur Baskar Sridharan Software Engineering Research.
ACS on VxWorks B.Gustafsson European Southern Observatory ESO Feb ESO.
ESO - Garching 08 – 09 March, st ALMA Common Software Workshop XML « Data by Value » Transport.
Google Code Libraries Dima Ionut Daniel. Contents What is Google Code? LDAPBeans Object-ldap-mapping Ldap-ODM Bug4j jOOR Rapa jongo Conclusion Bibliography.
© 2001 By Default! A Free sample background from Slide 1 Motivation CMW logging Real-Time Task CMW Server Logging thread.
USING ANDROID WITH THE INTERNET. Slide 2 Lecture Summary Getting network permissions Working with the HTTP protocol Sending HTTP requests Getting results.
MEKON & HOBO Java Frameworks for building Ontology-Driven Applications Current use cases:  Almost (!) products:  Knowledge-driven clinical documentation.
Presented by: Ramaswamy Krishnan-Chittur
JavaIOC Overview and Update
ALMA Common Software Basic Track
ACS Alarm System A. Caproniac
Notification Channel - Java API
Creating Novell Portal Services Gadgets: An Architectural Overview
Presented by: Ramaswamy Krishnan-Chittur
Social Simulation Project
ACS ALMA Common software Demo Setup
Notification Channel - C++ API
Tools.
Tools.
Channel Access Concepts
Channel Access Concepts
Presentation transcript:

ACS Logging System APIs: C++ Bogdan Jeram European Southern Observatory July 2004NRAO

ALMA Project ACS Course, July 2004ACS Logging System APIs: C++2 Architecture Application (C++) Centralized logger (Telecom Log COS) stdout - screen L o p g r g o I x n y g local cache - file Notification channel macro L A o g C g I E n g Client jlog client ACS log SVC Application (non C++ & Java)

ALMA Project ACS Course, July 2004ACS Logging System APIs: C++3 Logging System in C++ based on ACE logging defined callback ( LoggingProxy ) defined macros implementation of Centralized Log e.g. Telecom Log CORBA service ACS Log SVCS

ALMA Project ACS Course, July 2004ACS Logging System APIs: C++4 Initialisation should be done in every thread ! already done by the Container and the Simple client LoggingProxy m_logger (cacheSize, minCachePrio, maxCachePrio); LoggingProxy::init (&m_logger); additional configuration: host name, centralized logger, … LoggingProxy::done();

ALMA Project ACS Course, July 2004ACS Logging System APIs: C++5 C++ log macros Generic: ACS_LOG (flag, routine, log) log: ACE log message: ( log type, msg)

ALMA Project ACS Course, July 2004ACS Logging System APIs: C++6 ACE log messages Flags: –LM_RUNTIME_CONTEXT –LM_SOURCE_INFO Log types and default priorities: –LM_TRACE (2) –LM_DEBUG (3) –LM_INFO (4) –LM_NOTICE (5) –LM_WARNING (6) –LM_ERROR (8) –LM_CRITICAL (9) –LM_ALERT (10) –LM_EMERGENCY (11)

ALMA Project ACS Course, July 2004ACS Logging System APIs: C++7 C++ log macros Specialized: ACS_DEBUG( routine, msg) ACS_DEBUG_PARAM (routine, msg, param) ACS_TRACE (routine) ACS_SHORT_LOG (log)

ALMA Project ACS Course, July 2004ACS Logging System APIs: C++8 Examples of creating a message ACS_DEBUG( "BaciTestClass::~BaciTestClass“, "COB destroyed“ ); ACS_LOG(LM_RUNTIME_CONTEXT, "maci::ActivatorImpl::init", (LM_INFO, "Activator '%s' initialized successfuly", m_activator_name) );

ALMA Project ACS Course, July 2004ACS Logging System APIs: C++9 Configuring at construction time: LoggingProxy via the Configuration Database: environment variables: –set the priority for sending logs to stdout: ACS_LOG_STDOUT –set the file for the local cache: ACS_LOG_FILE

ALMA Project ACS Course, July 2004ACS Logging System APIs: C++10 ACS log service ACS service started with: acsStartORBSVC access to the ACS logging system if native support for logging is not available reference can be obtained via the Manager (ACSLogSvc)

ALMA Project ACS Course, July 2004ACS Logging System APIs: C++11 IDL interface LogSvc void logTrace(in TimeStamp time, in string msg, in RTContext rtCont, in SourceInfo srcInfo, in NVPairSeq data) raises (ACSErr::ACSException); void logDebug(in TimeStamp time, in string msg, in RTContext rtCont, in SourceInfo srcInfo, in NVPairSeq data) raises (ACSErr::ACSException); void logInfo(in TimeStamp time, in string msg, in RTContext rtCont, in SourceInfo srcInfo, in NVPairSeq data) raises (ACSErr::ACSException); void logNotice(in TimeStamp time, in string msg, in RTContext rtCont, in SourceInfo srcInfo, in NVPairSeq data) raises (ACSErr::ACSException); void logWarning(in TimeStamp time, in string msg, in RTContext rtCont, in SourceInfo srcInfo, in NVPairSeq data) raises (ACSErr::ACSException); void logError(in ACSErr::ErrorTrace c) raises (ACSErr::ACSException); void logCritical(in TimeStamp time, in string msg, in RTContext rtCont, in SourceInfo srcInfo, in NVPairSeq data) raises (ACSErr::ACSException); void logAlert(in TimeStamp time, in string msg, in RTContext rtCont, in SourceInfo srcInfo, in NVPairSeq data) raises (ACSErr::ACSException); void logEmergency(in TimeStamp time, in string msg, in RTContext rtCont, in SourceInfo srcInfo, in NVPairSeq data) raises (ACSErr::ACSException); void logXML(in XMLstring xml) raises (ACSErr::ACSException); };

ALMA Project ACS Course, July 2004ACS Logging System APIs: C++12 References Logging and Archiving: ineDocs/Logging_and_Archiving.pdf ineDocs/Logging_and_Archiving.pdf logging doxygen documentation: $ACSROOT/man/cpp/logging_8h.html ACS Log SVCS doxygen documentation: $ACSROOT/man/idl/acslog_8idl.html

ALMA Project ACS Course, July 2004ACS Logging System APIs: C++13 Exercises Put into your example some log message: –trace messages: ACS_TRACE –debug message: ACS_DEBUG –try to replace ACS__TRACE/ACS_DEBUG with ACS_LOG (try different combination of flags) play with environment variables: –ACS_LOG_STDOUT –ACS_LOG_FILE try jlog log client