Building Reusable Angular Services: Logging
Offered By: Pluralsight
Course Description
Overview
Learn how to perform logging in Angular applications by creating a set of reusable log publishing classes. A log publishers service replaces console.log() making your logging much more flexible.
Professional programmers know that logging errors and being able to track what is going on within an Angular application is essential. In this course, Building Reusable Angular Services: Logging, you'll learn how to design an Angular service to perform logging more efficiently and with more flexibility than just using console.log(), by creating an extensible Angular service to log any data to a variety of locations. First, you'll explore how to build a simple console logging class, a class to log to local storage, and a class to post log information to a Web API. Additionally, you'll delve into building different types of log entries, such as debug, informational, error, and warnings. Finally, you'll discover how to create a JSON configuration file to control where you log the data. By the end of this course, you'll have a great start on your logging service that can be used in your own applications. This service can replace all your console.log() calls to provide a better, and more flexible approach to logging.
Professional programmers know that logging errors and being able to track what is going on within an Angular application is essential. In this course, Building Reusable Angular Services: Logging, you'll learn how to design an Angular service to perform logging more efficiently and with more flexibility than just using console.log(), by creating an extensible Angular service to log any data to a variety of locations. First, you'll explore how to build a simple console logging class, a class to log to local storage, and a class to post log information to a Web API. Additionally, you'll delve into building different types of log entries, such as debug, informational, error, and warnings. Finally, you'll discover how to create a JSON configuration file to control where you log the data. By the end of this course, you'll have a great start on your logging service that can be used in your own applications. This service can replace all your console.log() calls to provide a better, and more flexible approach to logging.
Syllabus
- Course Overview 1min
- Building a Simple Logging Service 14mins
- Adding Different Levels of Logging 18mins
- Creating a Flexible Log Publishers Service 21mins
- Building a Local Storage Publisher 19mins
- Building a Web API Publisher 20mins
- Reading Publishers from a JSON Configuration File 14mins
Taught by
Paul D. Sheriff
Related Courses
Single Page Web Applications with AngularJSJohns Hopkins University via Coursera Front-End JavaScript Frameworks: AngularJS
The Hong Kong University of Science and Technology via Coursera Front End Frameworks
Google via Udacity Developing Dynamic Web Applications Using Angular
Microsoft via edX AngularJS: Advanced Framework Techniques
Microsoft via edX