1 55 package org.apache.log; 56 57 64 public final class LogKit 65 { 66 75 public static ContextStack getCurrentContext() 76 { 77 return ContextStack.getCurrentContext(); 78 } 79 80 87 public static Logger getLoggerFor( final String category ) 88 { 89 return Hierarchy.getDefaultHierarchy().getLoggerFor( category ); 90 } 91 92 99 public static Priority getPriorityForName( final String priority ) 100 { 101 return Priority.getPriorityForName( priority ); 102 } 103 104 109 public static void log( final String message, final Throwable t ) 110 { 111 Hierarchy.getDefaultHierarchy().log( message, t ); 112 } 113 114 119 public static void log( final String message ) 120 { 121 Hierarchy.getDefaultHierarchy().log( message ); 122 } 123 124 129 public static void setDefaultLogTarget( final LogTarget defaultLogTarget ) 130 { 131 Hierarchy.getDefaultHierarchy().setDefaultLogTarget( defaultLogTarget ); 132 } 133 134 137 private LogKit() 138 { 139 } 140 } 141 | Popular Tags |