Top Inners Fields Constructors Methods
com.jogamp.gluegen

public Class Logging

extends Object
Class Inheritance
Imports
java.util.HashMap, .Map, java.util.logging.ConsoleHandler, .Formatter, .Handler, .Level, .LogRecord, .Logger, jogamp.common.Debug, com.jogamp.common.util.PropertyAccess, com.jogamp.gluegen.cgram.types.AliasedSymbol, .Type

Author
Michael Bien, et.al.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
public static interface
Logging.LoggerIf

An interface for Logger.

pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
public static final boolean
private static final Map<String, Logging.LoggerIf>
private static final Logging.FQNLogger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
alignLevel(final Logging.LoggerIf l)

Align log-level of given logger to the root logger's level.

public static void
alignLevel(final Logging.LoggerIf l, final Level level)

Align log-level of given logger and all its handlers to the given level.

public static String
getCanonicalName(final Level level)

public static Logging.LoggerIf
getLogger()

Returns the root package logger.

public static synchronized Logging.LoggerIf
getLogger(final Class<?> clazz)

Returns the demanded logger, while aligning its log-level to the root logger's level.

public static synchronized Logging.LoggerIf
getLogger(final String packageName, final String simpleClassName)

Returns the demanded logger, while aligning its log-level to the root logger's level.

pack-priv static void
init()

provokes static initialization

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEBUGback to summary
public static final boolean DEBUG
loggersback to summary
private static final Map<String, Logging.LoggerIf> loggers
rootPackageLoggerback to summary
private static final Logging.FQNLogger rootPackageLogger

Constructor Detail

Loggingback to summary
public Logging()

Method Detail

alignLevelback to summary
public static void alignLevel(final Logging.LoggerIf l)

Align log-level of given logger to the root logger's level.

alignLevelback to summary
public static void alignLevel(final Logging.LoggerIf l, final Level level)

Align log-level of given logger and all its handlers to the given level.

getCanonicalNameback to summary
public static String getCanonicalName(final Level level)
getLoggerback to summary
public static Logging.LoggerIf getLogger()

Returns the root package logger.

getLoggerback to summary
public static synchronized Logging.LoggerIf getLogger(final Class<?> clazz)

Returns the demanded logger, while aligning its log-level to the root logger's level.

getLoggerback to summary
public static synchronized Logging.LoggerIf getLogger(final String packageName, final String simpleClassName)

Returns the demanded logger, while aligning its log-level to the root logger's level.

initback to summary
pack-priv static void init()

provokes static initialization

com.jogamp.gluegen back to summary

pack-priv Class Logging.FQNLogger

extends Object
implements LoggerIf
Class Inheritance
All Implemented Interfaces
com.jogamp.gluegen.Logging.LoggerIf

Field Summary

Modifier and TypeField and Description
public final Logging.PlainLogConsoleHandler
public final Logger

Constructor Summary

AccessConstructor and Description
pack-priv
FQNLogger(final String fqnClassName, final String simpleClassName, final Level level)

Method Summary

Modifier and TypeMethod and Description
public void
public void
public synchronized Handler[]
public Level
public String
public String
public void
public void
public boolean
public void
public void
public void
public void
public void
log(final Level level, final ASTLocusTag loc, final String msg, final Object param)

Implements com.jogamp.gluegen.Logging.LoggerIf.log.

See Logger#log(Level, String, Object)
public void
log(final Level level, final ASTLocusTag loc, final String msg, final Object... params)

Implements com.jogamp.gluegen.Logging.LoggerIf.log.

See Logger#log(Level, String, Object[])
public void
public void
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

handlerback to summary
public final Logging.PlainLogConsoleHandler handler
implback to summary
public final Logger impl

Constructor Detail

FQNLoggerback to summary
pack-priv FQNLogger(final String fqnClassName, final String simpleClassName, final Level level)

Method Detail

debugback to summary
public void debug(final String msg)

Implements com.jogamp.gluegen.Logging.LoggerIf.debug.

Doc from com.jogamp.gluegen.Logging.LoggerIf.debug.

Calls log(Level, String) w/ Level#FINE.

Annotations
@Override
debugback to summary
public void debug(final ASTLocusTag loc, final String msg)

Implements com.jogamp.gluegen.Logging.LoggerIf.debug.

Doc from com.jogamp.gluegen.Logging.LoggerIf.debug.

Calls log(Level, ASTLocusTag, String) w/ Level#FINE.

Annotations
@Override
getHandlersback to summary
public synchronized Handler[] getHandlers()

Implements com.jogamp.gluegen.Logging.LoggerIf.getHandlers.

Doc from com.jogamp.gluegen.Logging.LoggerIf.getHandlers.

See Logger#getHandlers()

Annotations
@Override
getLevelback to summary
public Level getLevel()

Implements com.jogamp.gluegen.Logging.LoggerIf.getLevel.

Doc from com.jogamp.gluegen.Logging.LoggerIf.getLevel.

See Logger#getLevel()

Annotations
@Override
getNameback to summary
public String getName()

Implements com.jogamp.gluegen.Logging.LoggerIf.getName.

Doc from com.jogamp.gluegen.Logging.LoggerIf.getName.

See Logger#getName()

Annotations
@Override
getSourceClassNameback to summary
public String getSourceClassName()

Implements com.jogamp.gluegen.Logging.LoggerIf.getSourceClassName.

Doc from com.jogamp.gluegen.Logging.LoggerIf.getSourceClassName.

See LogRecord#getSourceClassName()

Annotations
@Override
infoback to summary
public void info(final String msg)

Implements com.jogamp.gluegen.Logging.LoggerIf.info.

Doc from com.jogamp.gluegen.Logging.LoggerIf.info.

See Logger#info(String)

Annotations
@Override
infoback to summary
public void info(final ASTLocusTag loc, final String msg)

Implements com.jogamp.gluegen.Logging.LoggerIf.info.

Doc from com.jogamp.gluegen.Logging.LoggerIf.info.

See Logger#info(String)

Annotations
@Override
isLoggableback to summary
public boolean isLoggable(final Level level)

Implements com.jogamp.gluegen.Logging.LoggerIf.isLoggable.

Doc from com.jogamp.gluegen.Logging.LoggerIf.isLoggable.

See Logger#isLoggable(Level)

Annotations
@Override
logback to summary
public void log(final Level level, final String msg)

Implements com.jogamp.gluegen.Logging.LoggerIf.log.

Doc from com.jogamp.gluegen.Logging.LoggerIf.log.

See Logger#log(Level, String)

Annotations
@Override
logback to summary
public void log(final Level level, final String msg, final Object param)

Implements com.jogamp.gluegen.Logging.LoggerIf.log.

Doc from com.jogamp.gluegen.Logging.LoggerIf.log.

See Logger#log(Level, String, Object)

Annotations
@Override
logback to summary
public void log(final Level level, final String msg, final Object... params)

Implements com.jogamp.gluegen.Logging.LoggerIf.log.

Doc from com.jogamp.gluegen.Logging.LoggerIf.log.

See Logger#log(Level, String, Object[])

Annotations
@Override
logback to summary
public void log(final Level level, final ASTLocusTag loc, final String msg)

Implements com.jogamp.gluegen.Logging.LoggerIf.log.

Doc from com.jogamp.gluegen.Logging.LoggerIf.log.

See Logger#log(Level, String)

Annotations
@Override
logback to summary
public void log(final Level level, final ASTLocusTag loc, final String msg, final Object param)

Implements com.jogamp.gluegen.Logging.LoggerIf.log.

Doc from com.jogamp.gluegen.Logging.LoggerIf.log.

See Logger#log(Level, String, Object)

Annotations
@Override
logback to summary
public void log(final Level level, final ASTLocusTag loc, final String msg, final Object... params)

Implements com.jogamp.gluegen.Logging.LoggerIf.log.

Doc from com.jogamp.gluegen.Logging.LoggerIf.log.

See Logger#log(Level, String, Object[])

Annotations
@Override
setLevelback to summary
public void setLevel(final Level newLevel) throws SecurityException

Implements com.jogamp.gluegen.Logging.LoggerIf.setLevel.

Doc from com.jogamp.gluegen.Logging.LoggerIf.setLevel.

See Logger#setLevel(Level)

Annotations
@Override
setLevelOfAllHandlerback to summary
public void setLevelOfAllHandler(final Level newLevel) throws SecurityException

Implements com.jogamp.gluegen.Logging.LoggerIf.setLevelOfAllHandler.

Doc from com.jogamp.gluegen.Logging.LoggerIf.setLevelOfAllHandler.

See Handler#setLevel(Level)

Annotations
@Override
warningback to summary
public void warning(final String msg)

Implements com.jogamp.gluegen.Logging.LoggerIf.warning.

Doc from com.jogamp.gluegen.Logging.LoggerIf.warning.

See Logger#warning(String)

Annotations
@Override
warningback to summary
public void warning(final ASTLocusTag loc, final String msg)

Implements com.jogamp.gluegen.Logging.LoggerIf.warning.

Doc from com.jogamp.gluegen.Logging.LoggerIf.warning.

See Logger#warning(String)

Annotations
@Override
com.jogamp.gluegen back to summary

public Interface Logging.LoggerIf

Known Direct Implementers
com.jogamp.gluegen.Logging.FQNLogger

An interface for Logger.

Method Summary

Modifier and TypeMethod and Description
public void
public void
public Handler[]
public Level
public String
public String
public void
public void
info(final ASTLocusTag loc, final String msg)

See Logger#info(String)

public boolean
public void
log(final Level level, final String msg)

See Logger#log(Level, String)

public void
log(final Level level, final String msg, final Object param)

See Logger#log(Level, String, Object)

public void
log(final Level level, final String msg, final Object... params)

See Logger#log(Level, String, Object[])

public void
log(final Level level, final ASTLocusTag loc, final String msg)

See Logger#log(Level, String)

public void
log(final Level level, final ASTLocusTag loc, final String msg, final Object param)

See Logger#log(Level, String, Object)

public void
log(final Level level, final ASTLocusTag loc, final String msg, final Object... params)

See Logger#log(Level, String, Object[])

public void
public void
public void
public void

Method Detail

debugback to summary
public void debug(final String msg)

Calls log(Level, String) w/ Level#FINE.

debugback to summary
public void debug(final ASTLocusTag loc, final String msg)

Calls log(Level, ASTLocusTag, String) w/ Level#FINE.

getHandlersback to summary
public Handler[] getHandlers()

See Logger#getHandlers()

getLevelback to summary
public Level getLevel()

See Logger#getLevel()

getNameback to summary
public String getName()

See Logger#getName()

getSourceClassNameback to summary
public String getSourceClassName()

See LogRecord#getSourceClassName()

infoback to summary
public void info(final String msg)

See Logger#info(String)

infoback to summary
public void info(final ASTLocusTag loc, final String msg)

See Logger#info(String)

isLoggableback to summary
public boolean isLoggable(Level level)

See Logger#isLoggable(Level)

logback to summary
public void log(final Level level, final String msg)

See Logger#log(Level, String)

logback to summary
public void log(final Level level, final String msg, final Object param)

See Logger#log(Level, String, Object)

logback to summary
public void log(final Level level, final String msg, final Object... params)

See Logger#log(Level, String, Object[])

logback to summary
public void log(final Level level, final ASTLocusTag loc, final String msg)

See Logger#log(Level, String)

logback to summary
public void log(final Level level, final ASTLocusTag loc, final String msg, final Object param)

See Logger#log(Level, String, Object)

logback to summary
public void log(final Level level, final ASTLocusTag loc, final String msg, final Object... params)

See Logger#log(Level, String, Object[])

setLevelback to summary
public void setLevel(final Level newLevel) throws SecurityException

See Logger#setLevel(Level)

setLevelOfAllHandlerback to summary
public void setLevelOfAllHandler(final Level newLevel) throws SecurityException

See Handler#setLevel(Level)

warningback to summary
public void warning(final String msg)

See Logger#warning(String)

warningback to summary
public void warning(final ASTLocusTag loc, final String msg)

See Logger#warning(String)

com.jogamp.gluegen back to summary

pack-priv Class Logging.PlainLogConsoleHandler

extends ConsoleHandler
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final Logging.PlainLogFormatter

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Formatter
getFormatter()

Overrides java.util.logging.Handler.getFormatter.

Return the Formatter for this Handler.
Inherited from java.util.logging.ConsoleHandler:
closepublish

Field Detail

plfback to summary
pack-priv final Logging.PlainLogFormatter plf

Constructor Detail

PlainLogConsoleHandlerback to summary
pack-priv PlainLogConsoleHandler(final Logging.PlainLogFormatter plf, final Level level)

Method Detail

getFormatterback to summary
public Formatter getFormatter()

Overrides java.util.logging.Handler.getFormatter.

Doc from java.util.logging.Handler.getFormatter.

Return the Formatter for this Handler.

Returns:Formatter

the Formatter (may be null).

Annotations
@Override
com.jogamp.gluegen back to summary

pack-priv Class Logging.PlainLogFormatter

extends Formatter
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv ASTLocusTag
pack-priv final String

Constructor Summary

AccessConstructor and Description
pack-priv
PlainLogFormatter(final String simpleClassName)

Method Summary

Modifier and TypeMethod and Description
public String
format(final LogRecord
the log record to be formatted.
record
)

Implements abstract java.util.logging.Formatter.format.

Format the given log record and return the formatted string.
public void
Inherited from java.util.logging.Formatter:
formatMessagegetHeadgetTail

Field Detail

astLocusback to summary
pack-priv ASTLocusTag astLocus
simpleClassNameback to summary
pack-priv final String simpleClassName

Constructor Detail

PlainLogFormatterback to summary
pack-priv PlainLogFormatter(final String simpleClassName)

Method Detail

formatback to summary
public String format(final LogRecord record)

Implements abstract java.util.logging.Formatter.format.

Doc from java.util.logging.Formatter.format.

Format the given log record and return the formatted string.

The resulting formatted String will normally include a localized and formatted version of the LogRecord's message field. It is recommended to use the Formatter#formatMessage convenience method to localize and format the message field.

Parameters
record:LogRecord

the log record to be formatted.

Returns:String

the formatted log record

Annotations
@Override
setASTLocusTagback to summary
public void setASTLocusTag(final ASTLocusTag loc)