Commit d95df89d authored by Gintautas Miliauskas's avatar Gintautas Miliauskas

Changed logger name prefixes from 'zodb' to 'ZODB'.

parent 25625878
......@@ -13,7 +13,7 @@
##############################################################################
"""Handy standard storage machinery
$Id: BaseStorage.py,v 1.49 2004/04/19 21:19:05 tim_one Exp $
$Id: BaseStorage.py,v 1.50 2004/04/23 17:26:37 gintautasm Exp $
"""
import cPickle
import threading
......@@ -27,7 +27,7 @@ from persistent.TimeStamp import TimeStamp
from ZODB import POSException, utils
from ZODB.UndoLogCompatible import UndoLogCompatible
log = logging.getLogger("zodb.BaseStorage")
log = logging.getLogger("ZODB.BaseStorage")
class BaseStorage(UndoLogCompatible):
"""Abstract base class that support storage implementations.
......
......@@ -20,7 +20,7 @@ from pickle import PicklingError
from ZODB.POSException import ConflictError
from ZODB.loglevels import BLATHER
logger = logging.getLogger('zodb.ConflictResolution')
logger = logging.getLogger('ZODB.ConflictResolution')
ResolvedSerial = 'rs'
......
......@@ -13,7 +13,7 @@
##############################################################################
"""Database connection support
$Id: Connection.py,v 1.154 2004/04/19 20:24:02 tim_one Exp $"""
$Id: Connection.py,v 1.155 2004/04/23 17:26:37 gintautasm Exp $"""
import logging
import sys
......@@ -172,7 +172,7 @@ class Connection(ExportImport, object):
register for afterCompletion() calls.
"""
self._log = logging.getLogger("zodb.conn")
self._log = logging.getLogger("ZODB.Connection")
self._storage = None
self._debug_info = ()
......
......@@ -13,7 +13,7 @@
##############################################################################
"""Database objects
$Id: DB.py,v 1.77 2004/04/19 21:19:05 tim_one Exp $"""
$Id: DB.py,v 1.78 2004/04/23 17:26:37 gintautasm Exp $"""
import cPickle, cStringIO, sys
from thread import allocate_lock
......@@ -27,7 +27,7 @@ from ZODB.serialize import referencesf
import transaction
logger = logging.getLogger('zodb.db')
logger = logging.getLogger('ZODB.DB')
class DB(object):
"""The Object Database
......
......@@ -23,7 +23,7 @@ from ZODB.utils import p64, u64
from ZODB.serialize import referencesf
import sys
logger = logging.getLogger('zodb.ExportImport')
logger = logging.getLogger('ZODB.ExportImport')
class ExportImport:
......
......@@ -13,7 +13,7 @@
##############################################################################
"""Storage implementation using a log written to a single file.
$Revision: 1.15 $
$Revision: 1.16 $
"""
import base64
......@@ -52,7 +52,7 @@ t32 = 1L << 32
packed_version = "FS21"
logger = logging.getLogger('zodb.FileStorage')
logger = logging.getLogger('ZODB.FileStorage')
def panic(message, *data):
......
......@@ -160,7 +160,7 @@ DATA_VERSION_HDR_LEN = 58
assert struct.calcsize(TRANS_HDR) == TRANS_HDR_LEN
assert struct.calcsize(DATA_HDR) == DATA_HDR_LEN
logger = logging.getLogger('zodb.FileStorage.format')
logger = logging.getLogger('ZODB.FileStorage.format')
class FileStorageFormatter(object):
"""Mixin class that can read and write the low-level format."""
......
......@@ -13,8 +13,8 @@
##############################################################################
"""Mounted database support
$Id: Mount.py,v 1.24 2004/04/22 21:27:43 gintautasm Exp $"""
__version__='$Revision: 1.24 $'[11:-2]
$Id: Mount.py,v 1.25 2004/04/23 17:26:37 gintautasm Exp $"""
__version__='$Revision: 1.25 $'[11:-2]
import string
import time
......@@ -26,7 +26,7 @@ import Acquisition
from Acquisition import aq_base
from POSException import MountedStorageError
logger = logging.getLogger('zodb.Mount')
logger = logging.getLogger('ZODB.Mount')
# dbs is a holder for all DB objects, needed to overcome
# threading issues. It maps connection params to a DB object
......
......@@ -392,7 +392,7 @@ class BaseObjectReader:
unpickler.load() # skip the class metadata
return unpickler.load()
except EOFError, msg:
log = logging.getLogger("zodb.serialize")
log = logging.getLogger("ZODB.serialize")
log.exception("Unpickling error: %r", pickle)
raise
......
......@@ -142,7 +142,7 @@ DATA_VERSION_HDR_LEN = 62
assert struct.calcsize(TRANS_HDR) == TRANS_HDR_LEN
assert struct.calcsize(DATA_HDR) == DATA_HDR_LEN
logger = logging.getLogger("zodb.storage.file")
logger = logging.getLogger("ZODB.zodb4.z4format")
def panic(message, *data):
logger.critical(message, *data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment