29
29
import org .apache .beam .sdk .transforms .DoFn ;
30
30
import org .apache .beam .sdk .transforms .ParDo ;
31
31
import org .apache .beam .sdk .values .PCollection ;
32
- import org .apache . logging . log4j . LogManager ;
33
- import org .apache . logging . log4j . Logger ;
32
+ import org .slf4j . Logger ;
33
+ import org .slf4j . LoggerFactory ;
34
34
35
35
/*
36
36
This sample demonstrates how to write to a Spanner table.
@@ -125,10 +125,10 @@ static class Album {
125
125
126
126
/**
127
127
* Parses each tab-delimited line into a Singer object. The line format is the following:
128
- * singer_id\tfirstName\tlastName
128
+ * singer_id\tfirstName\tlastName
129
129
*/
130
130
static class ParseSinger extends DoFn <String , Singer > {
131
- private static final Logger LOG = LogManager .getLogger (ParseSinger .class );
131
+ private static final Logger LOG = LoggerFactory .getLogger (ParseSinger .class );
132
132
133
133
@ ProcessElement
134
134
public void processElement (ProcessContext c ) {
@@ -146,10 +146,10 @@ public void processElement(ProcessContext c) {
146
146
147
147
/**
148
148
* Parses each tab-delimited line into an Album object. The line format is the following:
149
- * singer_id\talbumId\talbumTitle
149
+ * singer_id\talbumId\talbumTitle
150
150
*/
151
151
static class ParseAlbum extends DoFn <String , Album > {
152
- private static final Logger LOG = LogManager .getLogger (ParseAlbum .class );
152
+ private static final Logger LOG = LoggerFactory .getLogger (ParseAlbum .class );
153
153
154
154
@ ProcessElement
155
155
public void processElement (ProcessContext c ) {
0 commit comments