Web-Based Electronic Operation Log
System Zlog System
K.Yoshii and T.Nakamura
Mitsubishi Electric System & Service Co., Ltd., Tsukuba, Ibaraki,305-0045, Japan
K.Furukawa, T.T.Nakamura*, T.Obina, M.Satoh, and N.Yamamoto
High Energy Accelerator Research Organization (KEK), Tsukuba,
Ibaraki, 305-0801, Japan* Speaker

ICALEPCS 2007

WOAB04

1

Contents• What is Zlog System?
• How it looks?
• Structure of Zlog System• What is Zope?
• Merit of Zlog System

2What is Zlog System?
• An Electronic logbook system• Developed at KEK• Zope based• Designed mainly for daily operation ofKEKB/PF-AR accelerator complex• But also usable for many purposes3History of Operation Log Systems for
KEKB Accelerator~ Aug. 2002
Real Notebook
Handwritten
Sep. 2002 ~ Dec. 2003
MS-Access & SQL server
Typed by hand (partially automated)
Jan. 2004 ~ZLog System – Zope & PostgreSQL
Automatic data entry4Old Log Notebooks~ Aug. 2002
• Notebook• handwritten

5Old Electronic Log

Menu

Trouble Log
Viewer

Sep 2002 ~ Dec 2003
• MS-Access & SQL server• Typed by hand (partially automated)

6New Electronic Log: Zlog System

Input and EditViewer

Jan. 2004 ~• ZLog system – Zope & PostgreSQL• Automatic data entry

7

Daily operation in KEKB control room8

How it looks?

Zlog on terminal
9

Main User Interfaces• Input and Edit Interface• Viewer Interfaces• Search Interface

10Input and Edit Interface
Input Area for New Entry
Text & ScreenShot Image

Latest Entries(Auto Update)to edit click heretime range to show

open 1-shift viewer
11Viewer Interface - 1•

Simple Viewer•

Read Only

12Viewer Interface - 2
Viewing Options
Multiple Logs can be selected.

Entries from different
Logs are shown withdifferent colors.

13

Search Interface• Search by Group, Trouble Level• Search by Keyword

14• Paper copies are also made for every shift.
• They are kept as non-electronic backup.

15Structure of Zlog System
Frontend
Zlog Core (Zope based)(Web Application for user interface)

Backend
PostgreSQL(Database server)

Log Monitor Server(Server for automatic data entry)

16

Database Server - PostgreSQL
Database Server - PostgreSQL

ALLKEKB(Default Log Table Structure Template)

Shift Schedule Entries

InheritKEKB
1.5 million event entries

PFAR
0.18 million event entries…
17Log Monitor Server
PostgreSQL

Automatic entries

SQL commands

Log Monitor Server.- python script

OPI

EPICS/Python API

putmonitor (EPICS/CA)(EPICS/CA)IOCIOC•••••••Start/Stop of Injection
Injection rate
Start/Stop of Physics run
Peak Luminosity
Start of Beam Tuning
Alarm Events
etc….

IOC …

Developed in Python18Web Application Server - Zope
PostgreSQL
DA (Zope Product)

Zlog core (Zope Application)

WebWebbrowser
browser
Web browser

Web Application Server - Zope
Feature of Zope
• Web Server• Development through Web• Ready-made Products(Application Templates)(plug-in Zope components)

19

What is Zope?
• Python-based open source web
application server.
• Available on Mac, Unix and Windows.
• Ready-made Products are available(Application Templates)(plug-in Zope components).
• Through-the-Web development &management.
20

Zope Management Interface

21

Why Zope?
• Easy to learn• Rapid development (only 2.5 months by 2persons for the ZLog)• High extensibility• Python-based (we are familiar to Python.)• Easy to handle Japanese character in multiplatform
22

Application Templates of Zope
Examples in KEKB

Device Management BBSKEKB Control Group Working MEMO - Plone
23

Other Zope Applications
Developed for KEKB/PF-AR

Devices Management
Shift Schedule Management

24

The Merits of Zlog System• Automatic entry of the operation log records.
• Users can browse and edit operation log wherever
network terminal is available. Development is also
possible from the network terminal.
• Free from Platform dependency of the terminals• Because development itself is done in Web Server,
no additional procedure such as data conversion isnecessary to publish on Web.
• Easy to develop/maintain by object oriented featureof Zope.

25

Zlog is exported to other projects• RI-beam of RIKEN - Zlog System• J-PARC - Zlog core
• Vacuum System Management at KEK Zlog core & PostgreSQLZlog core Template is now available.
• Recently Zlog core is restructured as a“Product” of Zope.
• Easy to install, configure, modify

26

Zlog System is evolving…

Thank you.

27